Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
math.hpp
Go to the documentation of this file.
1
3#pragma once
4
5#include <glm/mat4x4.hpp>
6#include <glm/vec2.hpp>
7#include <glm/vec3.hpp>
8#include <glm/vec4.hpp>
9
13namespace aegis2d {
14
19using Vec2 = glm::vec2;
20
22using Vec3 = glm::vec3;
23
25using Vec4 = glm::vec4;
26
31using Mat4 = glm::mat4;
32
33} // namespace aegis2d
Root namespace of the engine.
Definition audio.hpp:17
glm::vec4 Vec4
4D vector of floats (glm::vec4), e.g. homogeneous positions.
Definition math.hpp:25
glm::vec2 Vec2
2D vector of floats: positions, velocities, sizes (glm::vec2).
Definition math.hpp:19
glm::mat4 Mat4
4x4 matrix of floats (glm::mat4), stored column by column like GLSL and HLSL constant buffers,...
Definition math.hpp:31
glm::vec3 Vec3
3D vector of floats (glm::vec3), e.g. for glm::translate and glm::scale.
Definition math.hpp:22