[−][src]Module quicksilver::graphics
Draw 2D graphics to the screen
The main type is Graphics
, which is provided to your application by run
. It handles
drawing shapes via methods like Graphics::fill_rect
and Graphics::stroke_rect
. If the
existing drawing methods don't fit your needs, try Graphics::draw_elements
for manual
control over the shapes drawn.
For loading and drawing images, to the screen, use Image
.
Structs
Color | An RGBA color represented by normalized floats |
Graphics | The struct that handles sending draw calls to the GPU |
Image | A 2D image, stored on the GPU |
Mesh | A way to store rendered objects without having to re-process them |
Vertex | A vertex for drawing items to the GPU |
Enums
Element | A shape to draw, using uploaded |
PixelFormat | How a pixel's color is laid out in memory |