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

#include <definitions.hpp>

Inheritance diagram for PolygonShape:
Shape

Public Member Functions

 PolygonShape ()=default
 
 PolygonShape (std::vector< Vector2 > points)
 
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

Polygon polygon
 
Polygon scaledPolygon
 
- Public Attributes inherited from Shape
b2ShapeDef shapeDef
 
Vector2 origin
 

Additional Inherited Members

- Protected Member Functions inherited from Shape
void postLoad ()
 

Constructor & Destructor Documentation

◆ PolygonShape() [1/2]

PolygonShape::PolygonShape ( )
default

◆ PolygonShape() [2/2]

PolygonShape::PolygonShape ( std::vector< Vector2 points)

Member Function Documentation

◆ load()

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

◆ save()

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

Member Data Documentation

◆ polygon

Polygon PolygonShape::polygon

◆ scaledPolygon

Polygon PolygonShape::scaledPolygon

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