Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | Public Attributes | List of all members
RectangleShape Struct Referencefinal

#include <collision_shapes.h>

Inheritance diagram for RectangleShape:
CollisionShape

Public Member Functions

 RectangleShape (const glm::vec2 &size=glm::vec2(32.0f, 32.0f), BodyType body_type=BodyType::STATIC, const glm::vec2 &offset=glm::vec2(0.0f))
 
- Public Member Functions inherited from CollisionShape
virtual ~CollisionShape ()=default
 

Public Attributes

glm::vec2 size = glm::vec2(32.0f, 32.0f)
 
- Public Attributes inherited from CollisionShape
b2ShapeId id = b2_nullShapeId
 
BodyType body_type = BodyType::STATIC
 
ShapeType shape_type = ShapeType::RECTANGLE
 
glm::vec2 offset = glm::vec2(0.0f)
 

Constructor & Destructor Documentation

◆ RectangleShape()

RectangleShape::RectangleShape ( const glm::vec2 &  size = glm::vec2(32.0f, 32.0f),
BodyType  body_type = BodyType::STATIC,
const glm::vec2 &  offset = glm::vec2(0.0f) 
)
inlineexplicit

Member Data Documentation

◆ size

glm::vec2 RectangleShape::size = glm::vec2(32.0f, 32.0f)

The documentation for this struct was generated from the following file: