TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ RenderTiles2()

void Terraria.Main.RenderTiles2 ( )
inlineprotected

Definition at line 72972 of file Main.cs.

72973 {
72974 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
72975 if (drawToScreen)
72976 {
72977 return;
72978 }
72979 ((Game)this).GraphicsDevice.SetRenderTarget(tile2Target);
72980 ((Game)this).GraphicsDevice.Clear(Color.Transparent);
72981 spriteBatch.Begin();
72982 tileBatch.Begin();
72983 try
72984 {
72987 }
72988 catch (Exception e)
72989 {
72990 if (!ignoreErrors)
72991 {
72992 throw;
72993 }
72994 TimeLogger.DrawException(e);
72995 }
72996 TimeLogger.DetailedDrawReset();
72997 tileBatch.End();
72998 spriteBatch.End();
73000 TimeLogger.DetailedDrawTime(29);
73001 ((Game)this).GraphicsDevice.SetRenderTarget((RenderTarget2D)null);
73002 }
void PreDrawTiles(bool solidLayer, bool forRenderTargets, bool intoRenderTargets)
RenderTarget2D tile2Target
Definition Main.cs:915
void DrawTiles(bool solidLayer, bool forRenderTargets, bool intoRenderTargets, int waterStyleOverride=-1)
Definition Main.cs:21278
static SpriteBatch spriteBatch
Definition Main.cs:1043
TileDrawing TilesRenderer
Definition Main.cs:2486
static bool drawToScreen
Definition Main.cs:628
static TileBatch tileBatch
Definition Main.cs:1045
static bool ignoreErrors
Definition Main.cs:770
void DrawTileEntities(bool solidLayer, bool overRenderTargets, bool intoRenderTargets)
Definition Main.cs:21195

References Terraria.TimeLogger.DetailedDrawReset(), Terraria.TimeLogger.DetailedDrawTime(), Terraria.TimeLogger.DrawException(), Terraria.Main.DrawTileEntities(), Terraria.Main.DrawTiles(), Terraria.Main.drawToScreen, Terraria.UI.Game, Terraria.Main.ignoreErrors, Terraria.GameContent.Drawing.TileDrawing.PreDrawTiles(), Terraria.Main.spriteBatch, Terraria.Main.tile2Target, Terraria.Main.tileBatch, and Terraria.Main.TilesRenderer.

Referenced by Terraria.Main.DoDraw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: