- addParticleBurst
void addParticleBurst(ParticleEmitter emitter)
Create a burst of particles using the emitter
- begin
void begin(Color bg)
- begin
void begin(Color bg, Camera cam)
- close
void close()
Stop keeping the window alive
- draw
void draw(Color color, Vector[Len] points)
Draw a polygon with each point following the next in a circle around the edge
- draw
void draw(Color color, Circle circle)
Draw a circle with a given color
- draw
void draw(Color color, Rectangle rect)
Draw a rectangle with a color
- draw
void draw(Texture tex, Vector position, Color col)
Draw a texture at the given position with the given color
- draw
void draw(Texture tex, float x, float y, Color col)
Draw a texture at the given units with the given color
- draw
void draw(Texture tex, Rectangle area, float rotation, Vector origin, Vector scale, bool flipHorizontal, bool flipVertical, Color color)
Draw a transformed textur
- draw
void draw(Texture tex, float x, float y, float w, float h, float rot, float originX, float originY, float scaleX, float scaleY, bool flipHorizontal, bool flipVertical, Color color)
Draw a transformed texture
- draw
void draw(Texture tex, Transform trans, float x, float y, float w, float h, bool flipHorizontal, bool flipVertical, Color color)
Draw a texture with a precalculated transform
- draw
void draw(Sprite sprite)
Draw a sprite to the screen
- draw
float draw(Font font, char c, float x, float y, Color col)
Draw a character using a font and find the width it took
- draw
void draw(Font font, string str, float x, float y, float lineHeight, Color col)
Draw a string using a font
- draw
void draw(Font font, string str, float x, float y, float maxWidth, Color col, bool wrapOnWord, float lineHeight)
Draw a wrapped string that can wrap on word or by character
- end
void end()
Update particles and display the drawn objects
- end
void end(Tilemap!T map)
Update particles, check particles against the tilemap, and display the drawn objects
- isKeyDown
bool isKeyDown(string name)
Checks if a key is being held down by a key name
- loop
void loop(Render render, Update update, A state)
Undocumented in source. Be warned that the author may not have intended to support it.
- setShader
void setShader(string vertexShader, string fragmentShader, string transformAttributeName, string positionAttributeName, string texPositionAttributeName, string colorAttributeName, string textureAttributeName, string colorOutputName)
Sets the GLSL shader, see the GL backend docs
- setTransform
void setTransform(Camera cam)
- wasKeyDown
bool wasKeyDown(string name)
Checks if key was down previously by a key name
- gamepads
Gamepad[] gamepads [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- height
int height [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- isOpen
bool isOpen [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- mouse
Vector mouse [@property getter]
Get the position of the mouse
- mouseLeftPressed
bool mouseLeftPressed [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseLeftReleased
bool mouseLeftReleased [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseMiddlePressed
bool mouseMiddlePressed [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseMiddleReleased
bool mouseMiddleReleased [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseRightPressed
bool mouseRightPressed [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- mouseRightReleased
bool mouseRightReleased [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
- width
int width [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
The main window
Handles drawing and input