[−][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
.
Modules
blend | Options to configure custom blending pipelines |
Structs
Color | An RGBA color represented by normalized floats |
FontRenderer | A FontRenderer pairs a font source (typically a |
Graphics | The struct that handles sending draw calls to the GPU |
Image | A 2D image, stored on the GPU |
LayoutGlyph | A glyph that has been laid-out and uploaded to the GPU, making it ready to render |
Mesh | A way to store rendered objects without having to re-process them |
Surface | A Surface is the core struct for rendering to textures, or getting data from them. |
VectorFont | VectorFonts allow drawing characters from TTF files |
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 |
ResizeHandler | The way to adjust the content when the size of the window changes |