Game1.Draw C# (CSharp) Méthode

Draw() protected méthode

protected Draw ( GameTime gameTime ) : void
gameTime GameTime
Résultat void
      protected override void Draw(GameTime gameTime)
      {
        spriteBatch.Begin();
        spriteBatch.Draw(cursorTex, cursorPos, Color.White);
        spriteBatch.End();
      }
    }

Usage Example

        public void Draw(Game1 game, LocalPlayer player)
        {
            if (Type == 0)
            {
                DrawModel(game, model, player, Position, Rotation, 1, Vector3.One * Growth * 3, game.Loader.Fresnel2, new Vector3(0.2f, 0.4f, 0.8f) * (3 - Growth * 1.5f));
            }
            if (Type == 2)
            {
                game.FindLights(Position, 100, false, true, bounders);
                NewDrawList = game.ReturnLightList;
                NewDrawNumb = game.ReturnLightNumb;

                game.Draw(model, player, Position, Rotation, 1, new Vector3(0.5f, 0.5f, 0.5f), NewDrawNumb, NewDrawList, Vector2.One, DepthStencilState.Default, Vector3.One);
            }
        }
All Usage Examples Of Game1::Draw