RenderTarget

Constructors

this
this(int width, int height)

Destructor

~this
~this()
Undocumented in source.

Members

Functions

begin
void begin(Matrix projection)

Updates projection and prepares batches

bindFrameBuffer
void bindFrameBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
clear
void clear()
drawMesh
void drawMesh(Mesh mesh, Matrix transform, DrawMode mode, Color color)

Draws mesh using a flat shader

drawSprite
void drawSprite(Sprite sprite, Matrix transform)
drawSprite
void drawSprite(AnimatedSprite sprite, Matrix transform)
end
void end()

Finishes the batch

resize
void resize(int width, int height)

Properties

frameBufferId
uint frameBufferId [@property getter]
height
int height [@property getter]
texture
Texture texture [@property getter]
width
int width [@property getter]

Static functions

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

Static variables

flatShaderProgram
ShaderProgram flatShaderProgram;
Undocumented in source.

Variables

projection
Matrix projection;
spriteBatch
SpriteBatch spriteBatch;

Meta