public void Initialize(Device1 device, RenderTargetView renderTarget, DX10RenderCanvas canvasControl) { //Create the graphics context GraphicsContext.Device = device; GraphicsContext.RenderTargetView = renderTarget; GraphicsContext.RenderControl = canvasControl; OrbitCamera camera = new OrbitCamera(canvasControl); camera.ResetAngles = new Vector3(-MathUtil.PiOverFour, -MathUtil.PiOverFour, 0); camera.Reset(); GraphicsContext.Camera = camera; //Grid _grid = new Grid(); _grid.Initialize(GraphicsContext); ParticleEmitter = new ParticleEmitter(GraphicsContext); ParticleEmitter.Intialize(); DebugLog.Log("Initialized", "Direct3D"); }