SpriteBatch

Batches Texture objects for 2D drawing

Constructors

this
this()

Constructor

Members

Functions

draw
void draw(string item, vec4 position, vec4 cutout, vec2 origin, float rotation, SpriteFlip flip, vec4 color)

Draws texture from atlas

draw
void draw(AtlasIndex index, vec4 position, vec4 cutout, vec2 origin, float rotation, SpriteFlip flip, vec4 color)

Draws cached atlas index

draw
void draw(Texture texture, vec4 position, vec4 cutout, vec2 origin, float rotation, SpriteFlip flip, vec4 color)

Draws the texture

draw
void draw(Framebuffer fbo, vec4 position, vec4 cutout, vec2 origin, float rotation, SpriteFlip flip, vec4 color)

Draws a framebuffer texture

flush
void flush()

Flush the buffer

Meta