Beispiel #1
0
        public Form1()
        {
            Application.Idle += new System.EventHandler(this.Form_Idle);
            InitializeComponent();
            //InitHappy(pictureBox1.Handle); // WPF

            this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form_Closed);

            m_HEngine = new ManagedHEngine.ManagedHappyScene();

            m_HEngine.Create(pictureBox1.Handle);
            //m_HEngine.Render();
        }
Beispiel #2
0
        public HEngineControl()
        {
            //Application.Idle += new System.EventHandler(this.Form_Idle);
            InitializeComponent();
            //현재 picturebox크기
            m_PictureWidth = pictureBox1.Width;
            m_PictureHeight = pictureBox1.Height;

            m_HEngine = new ManagedHEngine.ManagedHappyScene();

            m_HEngine.Create(pictureBox1.Handle);
            //m_HEngine.Render(m_nodeName);
            //m_HEngine.TerrainRender();

            //Picturebox 를 컨트롤 크기에 꽉차게한다
            pictureBox1.Bounds = this.ClientRectangle;
            pictureBox1.Dock = DockStyle.None;
        }