PostDraw() public method

public PostDraw ( int i, int j, SpriteBatch spriteBatch ) : void
i int
j int
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
示例#1
0
        //in Terraria.Main.Draw after if statement checking whether texture2D is null call
        //  TileLoader.PostDraw(j, i, type, Main.spriteBatch);
        public static void PostDraw(int i, int j, int type, SpriteBatch spriteBatch)
        {
            ModTile modTile = GetTile(type);

            if (modTile != null)
            {
                modTile.PostDraw(i, j, spriteBatch);
            }
            foreach (GlobalTile globalTile in globalTiles)
            {
                globalTile.PostDraw(i, j, type, spriteBatch);
            }
        }