tModLoader v2024.11
A mod to make and play Terraria mods
SpriteDrawBuffer Class Reference

Public Member Functions

 SpriteDrawBuffer (GraphicsDevice graphicsDevice, int defaultSize)
 
void Bind ()
 
void CheckGraphicsDevice (GraphicsDevice graphicsDevice)
 
void Draw (Texture2D texture, Rectangle destination, Rectangle? sourceRectangle, VertexColors colors)
 
void Draw (Texture2D texture, Rectangle destination, Rectangle? sourceRectangle, VertexColors colors, float rotation, Vector2 origin, SpriteEffects effects)
 
void Draw (Texture2D texture, Rectangle destination, VertexColors colors)
 
void Draw (Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors color, float rotation, Vector2 origin, float scale, SpriteEffects effects)
 
void Draw (Texture2D texture, Vector2 position, Rectangle? sourceRectangle, VertexColors colors, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects)
 
void Draw (Texture2D texture, Vector2 position, VertexColors colors)
 
void Draw (Texture2D texture, Vector4 destinationRectangle, Rectangle? sourceRectangle, VertexColors colors, float rotation, Vector2 origin, SpriteEffects effect, float depth)
 
void DrawRange (int index, int count)
 
void DrawSingle (int index)
 
void Unbind ()
 
void UploadAndBind ()