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

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);



            GraphicsDevice.BlendState = BlendState.Opaque;
            GraphicsDevice.DepthStencilState = DepthStencilState.Default;
            GraphicsDevice.RasterizerState = new RasterizerState { CullMode = CullMode.CullClockwiseFace };
            GraphicsDevice.BlendState = BlendState.AlphaBlend;

            foreach (var t in currentVisibleTiles.ReverseLazy())
                t.GraphicsProvider?.Draw(Effect);

            Theron.Draw(Effect);

            DrawMiniMap();
        }