SpriteBatchImpl

Undocumented in source.
class SpriteBatchImpl : IDisposable, IVerifiable, IDrawable(
uint maxVertexCount
) {}

Constructors

this
this()
Undocumented in source.

Members

Functions

begin
void begin(Texture texture)
Undocumented in source. Be warned that the author may not have intended to support it.
dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
draw
void draw(IRenderTarget target, ShaderProgram shader)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(vec2 position, vec2 size, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(vec2 position, vec2 size, float rotation, DrawOrigin origin, vec2 originOffset, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(rect rectangle, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(rect rectangle, float rotation, DrawOrigin origin, vec2 originOffset, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(vec2 position, vec2 size, rect uv, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(vec2 position, vec2 size, rect uv, float rotation, DrawOrigin origin, vec2 originOffset, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(rect rectangle, rect uv, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(rect rectangle, rect uv, mat3 transformation, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRectangle
void drawRectangle(rect rectangle, rect uv, float rotation, DrawOrigin origin, vec2 originOffset, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(Crunch.Image image, vec2 position, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(Crunch.Image image, vec2 position, float rotation, DrawOrigin origin, vec2 originOffset, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(Crunch.Image image, vec2 position, float scale, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(Crunch.Image image, vec2 position, float scale, float rotation, DrawOrigin origin, vec2 originOffset, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(Crunch.Image sprite, vec2 position, vec2 scale, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(Crunch.Image sprite, vec2 position, vec2 scale, float rotation, DrawOrigin origin, vec2 originOffset, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawSprite
void drawSprite(Crunch.Image sprite, mat3 transformation, vec4 color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTriangle
void drawTriangle(Vertex[3] tri)
Undocumented in source. Be warned that the author may not have intended to support it.
end
void end()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

valid
bool valid [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

load
void load()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

spriteShader
ShaderProgram spriteShader;

Regular texture shader.

Structs

Vertex
struct Vertex
Undocumented in source.

Variables

renderable
RenderableMesh renderable;
Undocumented in source.
vertices
Vertex[maxVertexCount] vertices;
Undocumented in source.

Meta