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

#include <definitions.hpp>

Inheritance diagram for SegmentShape:
Shape

Public Member Functions

 SegmentShape ()=default
 
 SegmentShape (Vector2 point1, Vector2 point2)
 
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

Segment segment
 
Segment scaledSegment
 
- Public Attributes inherited from Shape
b2ShapeDef shapeDef
 
Vector2 origin
 

Additional Inherited Members

- Protected Member Functions inherited from Shape
void postLoad ()
 

Constructor & Destructor Documentation

◆ SegmentShape() [1/2]

SegmentShape::SegmentShape ( )
default

◆ SegmentShape() [2/2]

SegmentShape::SegmentShape ( Vector2  point1,
Vector2  point2 
)

Member Function Documentation

◆ load()

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

◆ save()

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

Member Data Documentation

◆ scaledSegment

Segment SegmentShape::scaledSegment

◆ segment

Segment SegmentShape::segment

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