[−][src]Module kit::graphics
Graphics commands for drawing primitives.
Functions
aspect | returns the current aspect ratio of the application window |
default_projection | |
draw_circ | |
draw_image | Draws a full image on screen at the specified position and scale using a quad. |
draw_line | |
draw_mesh | |
draw_point | |
draw_rect | |
draw_shape | general draw call for drawing a shape primitive |
draw_sprite | This draw command is a special alias for |
init | lifecycle function for initial setup and sensible defaults. Needs to be run after window initialization. |
load_img | |
present | Lifecycle function for processing all draw calls collected for a single frame of rendering. Clears all calls when done to prepare for the next frame. |
sprite | Sprite builder. The result can be consumed immediately by |
window_height | |
window_width | returns the current window width |