コード例 #1
0
ファイル: Map3d.cs プロジェクト: mnieznalska/mobmap
        public void dxInit(Form1 form)
        {
            try
            {
                this.parentForm = form;
                mapDraw = new MapDraw(this);
                mapView = new MapView(this);
                mapUserControl = new MapUserControl(this);

                InitializeGraphics();

                this.parentForm.Show();
                this.parentForm.Focus();

                while (isCreated)
                {
                    if(parentForm.d3dRenderStatus==Form1.D3dRenderStatus.D3D_RENDER)
                        Render();

                    Application.DoEvents();

                }

            }
            catch (DirectXException ex)
            {
                throw new ArgumentException("Error: Couldn't initialize 3d graphics", ex);
            }
        }
コード例 #2
0
        public void dxInit(Form1 form)
        {
            try
            {
                this.parentForm = form;
                mapDraw         = new MapDraw(this);
                mapView         = new MapView(this);
                mapUserControl  = new MapUserControl(this);

                InitializeGraphics();

                this.parentForm.Show();
                this.parentForm.Focus();

                while (isCreated)
                {
                    if (parentForm.d3dRenderStatus == Form1.D3dRenderStatus.D3D_RENDER)
                    {
                        Render();
                    }

                    Application.DoEvents();
                }
            }
            catch (DirectXException ex)
            {
                throw new ArgumentException("Error: Couldn't initialize 3d graphics", ex);
            }
        }