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

◆ DrawLiquid()

void Terraria.Main.DrawLiquid ( bool bg = false,
int waterStyle = 0,
float Alpha = 1f,
bool drawSinglePassLiquids = true )
inlinepackage

Definition at line 73184 of file Main.cs.

73185 {
73186 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
73187 //IL_0030: Unknown result type (might be due to invalid IL or missing references)
73188 //IL_003c: Unknown result type (might be due to invalid IL or missing references)
73189 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
73190 //IL_0046: Unknown result type (might be due to invalid IL or missing references)
73191 //IL_0060: Unknown result type (might be due to invalid IL or missing references)
73192 //IL_0077: Unknown result type (might be due to invalid IL or missing references)
73193 if (!Lighting.NotRetro)
73194 {
73195 oldDrawWater(bg, waterStyle, Alpha);
73196 return;
73197 }
73198 Stopwatch stopwatch = new Stopwatch();
73199 stopwatch.Start();
73200 Vector2 drawOffset = (Vector2)(drawToScreen ? Vector2.Zero : new Vector2((float)offScreenRange, (float)offScreenRange)) - screenPosition;
73201 if (bg)
73202 {
73204 }
73205 LiquidRenderer.Instance.DrawNormalLiquids(spriteBatch, drawOffset, waterStyle, Alpha, bg);
73207 {
73208 LiquidRenderer.Instance.DrawShimmer(spriteBatch, drawOffset, bg);
73209 }
73210 if (!bg)
73211 {
73212 TimeLogger.DrawTime(4, stopwatch.Elapsed.TotalMilliseconds);
73213 }
73214 }
void DrawLiquidBehindTiles(int waterStyleOverride=-1)
void oldDrawWater(bool bg=false, int Style=0, float Alpha=1f)
Definition Main.cs:73241
static SpriteBatch spriteBatch
Definition Main.cs:1043
static int waterStyle
Definition Main.cs:1283
TileDrawing TilesRenderer
Definition Main.cs:2486
static bool drawToScreen
Definition Main.cs:628
static Vector2 screenPosition
The position of the top left corner of the screen in world coordinates. Modify in M:Terraria....
Definition Main.cs:1864
static int offScreenRange
Definition Main.cs:905

References Terraria.GameContent.Drawing.TileDrawing.DrawLiquidBehindTiles(), Terraria.TimeLogger.DrawTime(), Terraria.Main.drawToScreen, Terraria.GameContent.Liquid.LiquidRenderer.Instance, Terraria.Lighting.NotRetro, Terraria.Main.offScreenRange, Terraria.Main.oldDrawWater(), Terraria.Main.screenPosition, Terraria.Main.spriteBatch, Terraria.Main.TilesRenderer, and Terraria.Main.waterStyle.

Referenced by Terraria.Main.DrawCapture(), and Terraria.Main.DrawWaters().

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