terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
Terraria.GameContent.Liquid.LiquidRenderer Class Reference
+ Collaboration diagram for Terraria.GameContent.Liquid.LiquidRenderer:

Classes

struct  LiquidCache
 
struct  LiquidDrawCache
 
struct  SpecialLiquidDrawCache
 

Public Member Functions

 LiquidRenderer ()
 
void PrepareAssets ()
 
void DrawNormalLiquids (SpriteBatch spriteBatch, Microsoft.Xna.Framework.Vector2 drawOffset, int waterStyle, float globalAlpha, bool isBackgroundDraw)
 
void DrawShimmer (SpriteBatch spriteBatch, Microsoft.Xna.Framework.Vector2 drawOffset, bool isBackgroundDraw)
 
int GetShimmerFrame (bool top, float worldPositionX, float worldPositionY)
 
bool HasFullWater (int x, int y)
 
float GetVisibleLiquid (int x, int y)
 
void Update (GameTime gameTime)
 
void PrepareDraw (Rectangle drawArea)
 
void SetWaveMaskData (ref Microsoft.Xna.Framework.Graphics.Texture2D texture)
 
Rectangle GetCachedDrawArea ()
 

Static Public Member Functions

static void LoadContent ()
 
static void SetShimmerVertexColors_Sparkle (ref VertexColors colors, float opacity, int x, int y, bool top)
 
static void SetShimmerVertexColors (ref VertexColors colors, float opacity, int x, int y)
 
static float GetShimmerWave (ref float worldPositionX, ref float worldPositionY)
 
static Microsoft.Xna.Framework.Graphics.Color GetShimmerGlitterColor (bool top, float worldPositionX, float worldPositionY)
 
static void GetShimmerGlitterColor (bool top, float worldPositionX, float worldPositionY, ref Microsoft.Xna.Framework.Graphics.Color color, float opacity)
 
static float GetShimmerGlitterOpacity (bool top, float worldPositionX, float worldPositionY)
 
static Microsoft.Xna.Framework.Vector4 GetShimmerBaseColor (float worldPositionX, float worldPositionY)
 
static void GetShimmerColor (float worldPositionX, float worldPositionY, ref Microsoft.Xna.Framework.Graphics.Color baseColor, float opcacity)
 

Static Public Attributes

static LiquidRenderer Instance
 
const float MIN_LIQUID_SIZE = 0.25f
 

Properties

Action< Microsoft.Xna.Framework.Graphics.Color[], RectangleWaveFilters [set]
 
static TileData Tiles [get, set]
 

Private Member Functions

void InternalPrepareDraw (Rectangle drawArea)
 

Static Private Member Functions

static uint SimpleWhiteNoise (uint x, uint y)
 
static LiquidRenderer ()
 

Private Attributes

LiquidRenderer.LiquidCache[] _cache
 
LiquidRenderer.LiquidDrawCache[] _drawCache
 
LiquidRenderer.SpecialLiquidDrawCache[] _drawCacheForShimmer
 
int _animationFrame
 
Rectangle _drawArea
 
readonly UnifiedRandom _random
 
Microsoft.Xna.Framework.Graphics.Color[] _waveMask
 
float _frameState
 

Static Private Attributes

const int ANIMATION_FRAME_COUNT = 16
 
const int CACHE_PADDING = 2
 
const int CACHE_PADDING_2 = 4
 
static readonly int[] WATERFALL_LENGTH
 
static readonly float[] DEFAULT_OPACITY
 
static readonly byte[] WAVE_MASK_STRENGTH
 
static readonly byte[] VISCOSITY_MASK
 
static readonly Asset< Microsoft.Xna.Framework.Graphics.Texture2D >[] _liquidTextures
 

Detailed Description

Definition at line 20 of file LiquidRenderer.cs.


The documentation for this class was generated from the following file: