DungeonMasterEngine.DungeonContent.Dungeon.InitializeGraphics C# (CSharp) Method

InitializeGraphics() private method

private InitializeGraphics ( ) : void
return void
        private void InitializeGraphics()
        {
            GraphicsDevice.RasterizerState = new RasterizerState { CullMode = CullMode.CullClockwiseFace };
            GraphicsDevice.BlendState = BlendState.AlphaBlend;

            pixel = new Texture2D(GraphicsDevice, 1, 1);
            pixel.SetData(new Color[1] { new Color(1f, 0, 0) });

            batcher = new SpriteBatch(GraphicsDevice);
            Effect = new BasicEffect(GraphicsDevice)
            {
                TextureEnabled = true,
                AmbientLightColor = new Vector3(0),
                DiffuseColor = new Vector3(1f),
                SpecularColor = new Vector3(0),
                SpecularPower = 0.1f,
                Alpha = 1f,
                EmissiveColor = new Vector3(1f),
                FogColor = Vector3.Zero,
                FogEnabled = true,
                FogStart = 0,
                FogEnd = FogHorizont
            };
            Effect.EnableDefaultLighting();
        }