Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
transform.h
1// SPDX-License-Identifier: MIT
2// SPDX-FileCopyrightText: 2025-2026 Manuel Osorio
3#pragma once
4#include "flint/math/types.h"
5
6namespace Flint {
14 struct Transform {
15 Vec2f position{0.f, 0.f};
16 float rotation = 0.f;
17 Vec2f scale{1.f, 1.f};
18 Vec2f origin{0.f, 0.f};
19 };
20}
Holds the 2-D transform components for a game object.
Definition transform.h:14