Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
aegis2d Namespace Reference

Root namespace of the engine. More...

Namespaces

namespace  audio
 Sound effects and music on top of SDL3 (client only).
 
namespace  core
 Logging, time, main loop, events and configuration shared by client and server.
 
namespace  ecs
 Entity-Component-System used by client and server.
 
namespace  net
 Binary serialization, UDP/TCP sockets and the network thread.
 
namespace  platform
 Window and input on top of SDL3, independent of the graphics API (client only).
 
namespace  render
 OpenGL renderer: sprites, text and camera (client only).
 
namespace  script
 Entity behaviors in Lua, so that new enemies and patterns need no recompilation.
 
namespace  shmup
 Shoot'em up building blocks on top of the ECS: player ships, their controls, weapons and their shots. A game of another genre leaves the module out.
 
namespace  ui
 Menus and forms: widgets and their focus, moved by keyboard, gamepad and mouse (client only).
 

Typedefs

using Vec2 = glm::vec2
 2D vector of floats: positions, velocities, sizes (glm::vec2).
 
using Vec3 = glm::vec3
 3D vector of floats (glm::vec3), e.g. for glm::translate and glm::scale.
 
using Vec4 = glm::vec4
 4D vector of floats (glm::vec4), e.g. homogeneous positions.
 
using 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

Root namespace of the engine.

The math types live directly in it: they are shared by every module, the server and the client.

Typedef Documentation

◆ Mat4

using aegis2d::Mat4 = typedef 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.

Mat4{1.0F} is the identity. Projections are built by each render backend (glm::orthoNO for OpenGL, glm::orthoZO for Direct3D), never by game code.

◆ Vec2

using aegis2d::Vec2 = typedef glm::vec2

2D vector of floats: positions, velocities, sizes (glm::vec2).

Components are x and y; Vec2{1.0F, 2.0F} builds one. Every target using core gets GLM_FORCE_CTOR_INIT (default-constructed vectors are zero, matrices are the identity) and GLM_FORCE_XYZW_ONLY (plain x, y, z, w members).

◆ Vec3

using aegis2d::Vec3 = typedef glm::vec3

3D vector of floats (glm::vec3), e.g. for glm::translate and glm::scale.

◆ Vec4

using aegis2d::Vec4 = typedef glm::vec4

4D vector of floats (glm::vec4), e.g. homogeneous positions.