Module ggez::graphics
[−]
[src]
The graphics
module performs the actual drawing of images, text, and other
objects with the Drawable
trait. It also handles basic loading of images
and text, apparently.
Also manages graphics state, coordinate systems, etc. The default coordinate system has the origin in the upper-left corner of the screen, unless it should be something else, then we should change it.
Structs
GraphicsContext |
A structure that contains graphics state. For instance, background and foreground colors. |
Image |
In-memory image data available to be drawn on the screen. |
Text |
Drawable text created from a |
Enums
DrawMode | |
Font |
A font that defines the shape of characters drawn on the screen. Can be created from a .ttf file or from an image. |
Traits
Drawable |
All types that can be drawn on the screen implement the |
Functions
clear | |
draw | |
draw_ex | |
line | |
lines | |
point | |
points | |
present | |
Not implemented since we don't have anything resembling a default font. |
|
printf |
Not implemented since we don't have anything resembling a default font. |
rectangle | |
rectangles |
Not part of the Love2D API but no reason not to include it. |
set_background_color | |
set_color |
Type Definitions
Color | |
Point | |
Rect |