protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(SkyColor); GraphicsDevice.BlendState = BlendState.AlphaBlend; GraphicsDevice.DepthStencilState = DepthStencilState.Default; GraphicsDevice.SamplerStates[0] = SamplerState.PointWrap; if (wireframeMode) { RasterizerState rasterizerState = new RasterizerState(); rasterizerState.FillMode = FillMode.WireFrame; GraphicsDevice.RasterizerState = rasterizerState; } else { GraphicsDevice.RasterizerState = RasterizerState.CullNone; } light.Draw(GraphicsDevice, Camera); teapot.Draw(GraphicsDevice, Camera); //cube.Draw(GraphicsDevice, Camera); geomCube.Draw(GraphicsDevice, Camera); geomCylinder.Draw(GraphicsDevice, Camera); geomSphere.Draw(GraphicsDevice, Camera); geomTorus.Draw(GraphicsDevice, Camera); floor.Draw(GraphicsDevice, Camera); DrawGrid(); DrawDebugOverlay(); Console.Draw(spriteBatch); base.Draw(gameTime); }