tModLoader v2023.01
A mod to make and play Terraria mods
Terraria.DataStructures.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, int inactiveLayerDepth)
 
 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, int inactiveLayerDepth)
 
 DrawData (Texture2D texture, Vector2 position, Rectangle? sourceRect, Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effect, int inactiveLayerDepth)
 
void Draw (SpriteBatch 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