Calamity Engine 1.0.0
A cross-platform 2D game engine written in C++ and SDL3.
Loading...
Searching...
No Matches
BoxShape Class Reference

#include <definitions.hpp>

Inheritance diagram for BoxShape:
Shape

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)
 
ShapesetSensor (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 ()
 

Constructor & Destructor Documentation

◆ BoxShape() [1/2]

BoxShape::BoxShape ( )
default

◆ BoxShape() [2/2]

BoxShape::BoxShape ( Vector2  size,
Vector2  origin = {0.5f, 0.5f} 
)

Member Function Documentation

◆ load()

template<class Archive >
void BoxShape::load ( Archive &  ar)
inline

◆ save()

template<class Archive >
void BoxShape::save ( Archive &  ar) const
inline

Member Data Documentation

◆ polygon

Polygon BoxShape::polygon

◆ scaledPolygon

Polygon BoxShape::scaledPolygon

◆ size

Vector2 BoxShape::size

The documentation for this class was generated from the following files: