Sprite

represents a drawable texture region

Constructors

this
this(Texture2D texture, Rectangle src_rect, Vector2 origin)

creates a sprite given a region and origin

this
this(Texture2D texture, Rectangle src_rect)

creates a sprite given a region

this
this(Texture2D texture)

creates a sprite

Members

Variables

origin
Vector2 origin;

origin point (for rotation and position)

src_rect
Rectangle src_rect;

texture region

texture
Texture2D texture;

raw texture data

Meta