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); } }
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); } }