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

#include <definitions.hpp>

Inheritance diagram for CircleShape:
Shape

Public Member Functions

 CircleShape ()=default
 
 CircleShape (float radius, Vector2 center={0, 0}, 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

float radius {}
 
Circle circle
 
Circle scaledCircle
 
- Public Attributes inherited from Shape
b2ShapeDef shapeDef
 
Vector2 origin
 

Additional Inherited Members

- Protected Member Functions inherited from Shape
void postLoad ()
 

Constructor & Destructor Documentation

◆ CircleShape() [1/2]

CircleShape::CircleShape ( )
default

◆ CircleShape() [2/2]

CircleShape::CircleShape ( float  radius,
Vector2  center = {0, 0},
Vector2  origin = {0.5f, 0.5f} 
)

Member Function Documentation

◆ load()

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

◆ save()

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

Member Data Documentation

◆ circle

Circle CircleShape::circle

◆ radius

float CircleShape::radius {}

◆ scaledCircle

Circle CircleShape::scaledCircle

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