SpriteBatch

SpriteBatch Draw batched quads.

Constructors

this
this(GraphicsDevice graphics)

SpriteBatch constructor.

Members

Functions

addQuad
void addQuad(vec2 position, ivec2 textureTilePosition)
Undocumented in source. Be warned that the author may not have intended to support it.
addVertices
void addVertices(VertexType[] vertices, uint[] indices)

Add vertices in the batch.

dispose
void dispose()

SpriteBatch destructor.

draw
void draw(float deltaTime, mat4 view, mat4 projection)
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize()

Initializes SpriteBatch.

Properties

tileSize
uint tileSize [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Drawable

m_graphicsDevice
GraphicsDevice m_graphicsDevice;
Undocumented in source.
m_shader
Shader m_shader;
Undocumented in source.
m_position
vec3 m_position;
Undocumented in source.
m_scale
vec3 m_scale;
Undocumented in source.
m_rotation
Quaternionf m_rotation;
Undocumented in source.
m_size
Size!int m_size;
Undocumented in source.
m_texture
Texture m_texture;
Undocumented in source.
m_isVisible
bool m_isVisible;
Undocumented in source.
m_vao
uint m_vao;
m_vertexBuffer
uint m_vertexBuffer;
m_indexBuffer
uint m_indexBuffer;
Undocumented in source.
draw
void draw(float deltaTime, mat4 view, mat4 projection)
Undocumented in source.
graphics
GraphicsDevice graphics [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
graphics
GraphicsDevice graphics [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
position
const(vec3) position [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
position
vec3 position [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
float scale [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
scale
vec3 scale [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
rotation
Quaternionf rotation [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
const(Size!int) size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
Size!int size [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Texture texture [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
texture
Texture texture [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
isVisible
bool isVisible [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isVisible
bool isVisible [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
vertexBuffer
uint vertexBuffer [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
shader
Shader shader [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
shader
Shader shader [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta