protected override void Initialize() { if (!DesignMode) { activeCamera.Pov.AspectRatio = AspectRatio; activeCamera.Enabled = true; activeCamera.Active = true; GraphicsDevice.RasterizerState = RasterizerState.CullCounterClockwise; GraphicsDevice.BlendState = BlendState.AlphaBlend; spriteBatch = new SpriteBatch(GraphicsDevice); grid = new Grid(GraphicsDevice); contentManager = Workspace.Current.CreateContentManager(this); Services.AddService<IPhysicsService>(new MockPhysicsService()); } base.Initialize(); }
protected override void Initialize() { if (!DesignMode) { activeCamera.Pov.AspectRatio = AspectRatio; activeCamera.Enabled = true; activeCamera.Active = true; // 表示が見辛くなるのでフォグを OFF にしておきます。 sceneSettings.Fog.Enabled = false; GraphicsDevice.RasterizerState = RasterizerState.CullCounterClockwise; GraphicsDevice.BlendState = BlendState.AlphaBlend; spriteBatch = new SpriteBatch(GraphicsDevice); grid = new Grid(GraphicsDevice); } base.Initialize(); }
protected override void Initialize() { if (!DesignMode) { pov.AspectRatio = AspectRatio; grid = new Grid(GraphicsDevice); GraphicsDevice.RasterizerState = RasterizerState.CullCounterClockwise; GraphicsDevice.BlendState = BlendState.AlphaBlend; } }