|
JNGL
Easy to use cross-platform 2D game library
|
Simple struct for a rectangle, can be use with jngl::contains. More...
#include <jngl/Rect.hpp>
Public Member Functions | |
| double | getX () const |
| double | getY () const |
| double | getWidth () const |
| double | getHeight () const |
| void | drawBoundingBox (Mat3 modelview) const |
| Draws a red box around the rectangle. | |
Public Attributes | |
| Vec2 | pos |
| Vec2 | size |
Simple struct for a rectangle, can be use with jngl::contains.