Exemple #1
0
 private void DrawIDrawableComponent(IDrawableComponent component)
 {
     if (component.isVisible())
     {
         component.Draw(_spriteBatch);
     }
 }
Exemple #2
0
        public override void Draw(IGameTime gameTime)
        {
            _mainMenuStateGraphics.Draw(this, gameTime);

            _textMenu.Draw(gameTime);

            base.Draw(gameTime);
        }
Exemple #3
0
 public override void Draw(DeviceContext context, int index)
 {
     if (index == cloudDrawIndex)
     {
         if (PlayerManager.IsHeadInsideWater == false)
         {
             _clouds.Draw(context, index);
         }
     }
     else
     {
         DrawingDome(context);
         DrawingMoon(context);
         if (PlayerManager.IsHeadInsideWater == false)
         {
             _skyStars.Draw(context, index);
         }
     }
 }
Exemple #4
0
 public override void Draw(IGameTime gameTime)
 {
     _graphicsComponent.Draw(this, gameTime);
 }
Exemple #5
0
        public override void Draw(IGameTime gameTime)
        {
            _splashStateGraphics.Draw(this, gameTime);

            base.Draw(gameTime);
        }
Exemple #6
0
 public virtual void Draw(SpriteBatch sb)
 {
     texture.Draw(sb, position, textureScale, Color.White);
 }
Exemple #7
0
 public void Draw()
 {
     _drawableComponent.Draw();
 }
Exemple #8
0
        public override void Draw(IGameTime gameTime)
        {
            _helpMainMenuStateGraphics.Draw(this, gameTime);

            base.Draw(gameTime);
        }