![]() |
Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
|
#include <definitions.hpp>
Public Member Functions | |
| BoxShape ()=default | |
| BoxShape (Vector2 size, Vector2 origin={0.5f, 0.5f}) | |
| template<class Archive > | |
| void | save (Archive &ar) const |
| template<class Archive > | |
| void | load (Archive &ar) |
Public Member Functions inherited from Shape | |
| virtual | ~Shape ()=default |
| void | applyMaterial (const Material &material) |
| Shape * | setSensor (bool sensor) |
| template<class Archive > | |
| void | save (Archive &ar) const |
| template<class Archive > | |
| void | load (Archive &ar) |
Public Attributes | |
| Vector2 | size |
| Polygon | scaledPolygon |
| Polygon | polygon |
Public Attributes inherited from Shape | |
| b2ShapeDef | shapeDef |
| Vector2 | origin |
Additional Inherited Members | |
Protected Member Functions inherited from Shape | |
| void | postLoad () |
|
default |
|
inline |
|
inline |
| Polygon BoxShape::polygon |
| Polygon BoxShape::scaledPolygon |
| Vector2 BoxShape::size |