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

◆ RenderWater()

void Terraria.Main.RenderWater ( )
inlineprotected

Definition at line 73004 of file Main.cs.

73005 {
73006 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
73007 if (!drawToScreen)
73008 {
73009 ((Game)this).GraphicsDevice.SetRenderTarget(waterTarget);
73010 ((Game)this).GraphicsDevice.Clear(Color.Transparent);
73011 spriteBatch.Begin();
73012 try
73013 {
73014 DrawWaters();
73015 }
73016 catch
73017 {
73018 }
73019 TimeLogger.DetailedDrawReset();
73020 spriteBatch.End();
73021 TimeLogger.DetailedDrawTime(31);
73022 ((Game)this).GraphicsDevice.SetRenderTarget((RenderTarget2D)null);
73023 }
73024 }
static SpriteBatch spriteBatch
Definition Main.cs:1043
static bool drawToScreen
Definition Main.cs:628
static RenderTarget2D waterTarget
Definition Main.cs:909
void DrawWaters(bool isBackground=false)
Definition Main.cs:73121

References Terraria.TimeLogger.DetailedDrawReset(), Terraria.TimeLogger.DetailedDrawTime(), Terraria.Main.drawToScreen, Terraria.Main.DrawWaters(), Terraria.UI.Game, Terraria.Main.spriteBatch, and Terraria.Main.waterTarget.

Referenced by Terraria.Main.DoDraw().

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