![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
#include <definitions.hpp>
Public Member Functions | |
| Rect () | |
| Rect (const Vector2 _position, const Vector2 _size) | |
| template<class Archive > | |
| void | serialize (Archive &ar) |
| operator SDL_Rect () const | |
Public Attributes | |
| Vector2 | position = {0, 0} |
| Vector2 | size = {0, 0} |
A simple rect class. It detrermines two Vector2's: position and size. Its used mainly to define sourceRects of Sprites.
|
inline |
|
inline |
|
inline |
| Vector2 Rect::position = {0, 0} |
| Vector2 Rect::size = {0, 0} |