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

#include <transform.h>

Public Member Functions

glm::mat4 GetMatrix () const
 

Public Attributes

glm::vec3 Position {0, 0, 0}
 
glm::vec2 Scale {1, 1}
 
float Rotation = 0.0f
 

Member Function Documentation

◆ GetMatrix()

glm::mat4 Transform2D::GetMatrix ( ) const
inline

Member Data Documentation

◆ Position

glm::vec3 Transform2D::Position {0, 0, 0}

◆ Rotation

float Transform2D::Rotation = 0.0f

◆ Scale

glm::vec2 Transform2D::Scale {1, 1}

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