Section 5: Embed Ogre in a Windows.Forms window
很多时候,我们需要把Ogre放到一个Windows.Form中,以方便使用,下面给出代码先:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Mogre;
namespace Tutorial06
{
public partial class OgreForm : Form
{
Root mRoot;
RenderWindow mWindow;
public OgreForm()
{
this.Size = new Size(800, 600);