RTSEngine.Graphics.RTSRenderer.Draw C# (CSharp) Method

Draw() public method

public Draw ( GameState s, float dt ) : void
s RTSEngine.Data.GameState
dt float
return void
        public void Draw(GameState s, float dt)
        {
            UpdateVisible(s.CGrid);

            G.Clear(Color.Black);

            DrawMap(Camera.View, Camera.Projection);
            DrawBuildings();
            DrawUnits();
            DrawParticles(s.TotalGameTime);
            DrawSelectionCircles(s.teams[teamIndex].ColorScheme.Secondary);
            if(drawBox) DrawSelectionBox();

            G.Textures[0] = null;
            G.Textures[1] = null;
            G.Textures[2] = null;
        }