[−][src]Crate rusty_gfx
The OpenGL window is (-1.0, -1.0) in the bottom left to (1.0, 1.0) in the top right.
Structs
Color | A color with 32-bit float parts from |
Img | An image that can be drawn using the |
Shape | A |
Window | An OpenGL window for displaying graphics. Also the object through which you'll receive input events (mouse, keyboard, etc.) |
Enums
ButtonState | Whether a button was pressed or released |
ButtonValue | Abstracted button values you may receive (arrow keys and WASD keys combined into directions, for example) |
GameEvent |
|
Functions
angle_facing | |
clamp_vec_to_magnitude | |
distance | The distance between two points. |
new_in_square |
Type Definitions
Vec2 | A 2D vector with |