tModLoader v2024.09
A mod to make and play Terraria mods
DrawData Struct Reference

Public Member Functions

 DrawData (Texture2D texture, Rectangle destinationRectangle, Color color)
 
 DrawData (Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRect, Color color)
 
 DrawData (Texture2D texture, Rectangle destinationRectangle, Rectangle? sourceRect, Color color, float rotation, Vector2 origin, SpriteEffects effect, float inactiveLayerDepth=0f)
 
 DrawData (Texture2D texture, Vector2 position, Color color)
 
 DrawData (Texture2D texture, Vector2 position, Rectangle? sourceRect, Color color)
 
 DrawData (Texture2D texture, Vector2 position, Rectangle? sourceRect, Color color, float rotation, Vector2 origin, float scale, SpriteEffects effect, float inactiveLayerDepth=0f)
 
 DrawData (Texture2D texture, Vector2 position, Rectangle? sourceRect, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effect, float inactiveLayerDepth=0f)
 
void Draw (SpriteBatch sb)
 
void Draw (SpriteDrawBuffer sb)
 

Public Attributes

Color color
 
Rectangle destinationRectangle
 
SpriteEffects effect
 
bool ignorePlayerRotation
 
Vector2 origin
 
Vector2 position
 
float rotation
 
Vector2 scale
 
int shader
 
Rectangle? sourceRect
 
Texture2D texture
 
readonly bool useDestinationRectangle
 

Static Public Attributes

static ? Rectangle nullRectangle