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

◆ DoDraw_Tiles_Solid()

void Terraria.Main.DoDraw_Tiles_Solid ( )
inlineprivate

Definition at line 80349 of file Main.cs.

80350 {
80351 //IL_001f: Unknown result type (might be due to invalid IL or missing references)
80352 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
80353 //IL_00db: Unknown result type (might be due to invalid IL or missing references)
80354 //IL_0073: Unknown result type (might be due to invalid IL or missing references)
80355 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
80356 //IL_007d: Unknown result type (might be due to invalid IL or missing references)
80357 //IL_0082: Unknown result type (might be due to invalid IL or missing references)
80360 spriteBatch.Begin((SpriteSortMode)0, BlendState.AlphaBlend, DefaultSamplerState, DepthStencilState.None, Rasterizer, (Effect)null, Transform);
80361 try
80362 {
80363 if (drawToScreen)
80364 {
80366 }
80367 else
80368 {
80369 spriteBatch.Draw((Texture2D)(object)tileTarget, sceneTilePos - screenPosition, Color.White);
80370 TimeLogger.DetailedDrawTime(17);
80371 }
80372 }
80373 catch (Exception e)
80374 {
80375 TimeLogger.DrawException(e);
80376 }
80377 tileBatch.End();
80378 spriteBatch.End();
80380 spriteBatch.Begin((SpriteSortMode)0, BlendState.AlphaBlend, DefaultSamplerState, DepthStencilState.None, Rasterizer, (Effect)null, Transform);
80381 try
80382 {
80383 player[myPlayer].hitReplace.DrawFreshAnimations(spriteBatch);
80384 player[myPlayer].hitTile.DrawFreshAnimations(spriteBatch);
80385 }
80386 catch (Exception e2)
80387 {
80388 TimeLogger.DrawException(e2);
80389 }
80390 spriteBatch.End();
80391 }
void PreDrawTiles(bool solidLayer, bool forRenderTargets, bool intoRenderTargets)
static Vector2 sceneTilePos
Definition Main.cs:1115
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 int myPlayer
The index in F:Terraria.Main.player of this client's Player. If this is 255, this client is the ser...
Definition Main.cs:1958
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 Matrix Transform
Definition Main.cs:2932
static TileBatch tileBatch
Definition Main.cs:1045
static SamplerState DefaultSamplerState
Definition Main.cs:2978
static RasterizerState Rasterizer
Definition Main.cs:580
void DrawTileEntities(bool solidLayer, bool overRenderTargets, bool intoRenderTargets)
Definition Main.cs:21195
RenderTarget2D tileTarget
Definition Main.cs:911
static Player[] player
Definition Main.cs:1960

References Terraria.Main.DefaultSamplerState, Terraria.TimeLogger.DetailedDrawTime(), Terraria.TimeLogger.DrawException(), Terraria.Main.DrawTileEntities(), Terraria.Main.DrawTiles(), Terraria.Main.drawToScreen, Terraria.Main.myPlayer, Terraria.Main.player, Terraria.GameContent.Drawing.TileDrawing.PreDrawTiles(), Terraria.Main.Rasterizer, Terraria.Main.sceneTilePos, Terraria.Main.screenPosition, Terraria.Main.spriteBatch, Terraria.Main.tileBatch, Terraria.Main.TilesRenderer, Terraria.Main.tileTarget, and Terraria.Main.Transform.

Referenced by Terraria.Main.DoDraw_WallsTilesNPCs().

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