Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
math.hpp File Reference

Vector and matrix types of the engine (GLM behind engine names). More...

#include <glm/mat4x4.hpp>
#include <glm/vec2.hpp>
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>

Go to the source code of this file.

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 

Typedefs

using aegis2d::Vec2 = glm::vec2
 2D vector of floats: positions, velocities, sizes (glm::vec2).
 
using aegis2d::Vec3 = glm::vec3
 3D vector of floats (glm::vec3), e.g. for glm::translate and glm::scale.
 
using aegis2d::Vec4 = glm::vec4
 4D vector of floats (glm::vec4), e.g. homogeneous positions.
 
using aegis2d::Mat4 = glm::mat4
 4x4 matrix of floats (glm::mat4), stored column by column like GLSL and HLSL constant buffers, so it can be uploaded to the GPU as it is.
 

Detailed Description

Vector and matrix types of the engine (GLM behind engine names).