RenderTarget

Constructors

this
this(int width, int height)

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

begin
void begin(Matrix projection)

Updates projection and prepares batches

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]

Variables

projection
Matrix projection;
spriteBatch
SpriteBatch spriteBatch;

Meta