Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
Flint::Transform Struct Reference

Holds the 2-D transform components for a game object. More...

#include <flint/math/transform.h>

+ Collaboration diagram for Flint::Transform:

Public Attributes

Vec2f position {0.f, 0.f}
 
float rotation = 0.f
 
Vec2f scale {1.f, 1.f}
 
Vec2f origin {0.f, 0.f}
 

Detailed Description

Holds the 2-D transform components for a game object.

Combines position, rotation, scale, and a local pivot (origin) into a single plain-data struct. Pass to buildModelMatrix() to produce the corresponding GPU matrix.

Definition at line 14 of file transform.h.


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