spaceconquest.Game1.Draw C# (CSharp) Method

Draw() protected method

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
return void
        protected override void Draw(GameTime gameTime)
        {
            device.Clear(Color.Black);
            // TODO: Add your drawing code here

            //GraphicsDevice.RasterizerState = wireFrameState;//
            // Reset the fill mode renderstate.
            GraphicsDevice.RasterizerState = RasterizerState.CullNone;
            //GraphicsDevice.RasterizerState = RasterizerState.CullNone;

            spriteBatch.Begin();
            IconButton.batch.Begin(SpriteSortMode.Texture, BlendState.NonPremultiplied); //for nonpremultiplied stuff, like the command buttons

            //titleScreen uses spritebatch object
            MenuManager.screen.Draw();

            spriteBatch.End();
            IconButton.batch.End();

            base.Draw(gameTime);
        }