XPlane.Core.Miscellaneous.Skybox.Draw C# (CSharp) Method

Draw() public method

Draws the Skybox.
public Draw ( SpriteBatch spriteBatch, GameTime gameTime ) : void
spriteBatch Sharpex2D.Rendering.SpriteBatch The spriteBatch.
gameTime Sharpex2D.GameTime The GameTime.
return void
        public void Draw(SpriteBatch spriteBatch, GameTime gameTime)
        {
            spriteBatch.DrawTexture(_background, _backgroundPosition);

            spriteBatch.DrawTexture(_layer1, _layer1Position1);
            spriteBatch.DrawTexture(_layer2, _layer2Position1);

            spriteBatch.DrawTexture(_layer1, _layer1Position2);
            spriteBatch.DrawTexture(_layer2, _layer2Position2);

            //spriteBatch.DrawTexture(_layer1, _layer1Position3);
            spriteBatch.DrawTexture(_layer2, _layer2Position3);
        }