How vn0m/vertex works
Vertex is a C++17/OpenGL 2D game engine, accompanied by Glade, a top-down RPG. The documented product workflow is a game using engine facilities to present a 2D world; the sampled Glade entry point was not excerpted, so its runtime calls cannot be mapped confidently. The graph preserves the engine’s rendering, tilemap, ECS, input/window, asset, particle, and physics capabilities. Edges are limited to relationships shown by excerpts, indexed references, or the README; several engine subsystems therefore remain unconnected.
Main entry points: Renderer.cpp Sprite renderer · CollisionMethod.h Collision interface · Tilemap.cpp Tilemap · GridCollision.cpp Grid collision
Components 23
Game
- Glade RPG
glade/src/main.cpp
Window and Input
- Window
vertex/src/Window.cpp - Input events
vertex/src/Events.cpp - Key codes
vertex/include/vertex/KeyCodes.h
Rendering and Assets
- Sprite renderer
vertex/src/Renderer.cpp - Camera
vertex/include/vertex/Camera.h - Shader
vertex/src/Shader.cpp - Texture
vertex/src/Texture.cpp - Asset store
vertex/src/AssetStore.cpp
World and Physics
- Tilemap
vertex/src/Tilemap.cpp - Particles
vertex/src/Particle.cpp - Body physics
vertex/src/physics/Physics.cpp - Collision interface
vertex/include/vertex/CollisionMethod.h - Brute-force collision
vertex/src/physics/BruteForceCollision.cpp - Grid collision
vertex/src/physics/GridCollision.cpp - Spatial grid
vertex/src/physics/SpatialGrid.cpp - Quadtree collision
vertex/src/physics/QuadTreeCollision.cpp - Quadtree
vertex/src/physics/QuadTree.cpp
Entity Components
- Entity registry
vertex/include/vertex/Registry.h - Component storage
vertex/include/vertex/SparseSet.h - Components
vertex/include/vertex/Components.h - Entity IDs
vertex/include/vertex/Entity.h
Other components
- Game player
Connections 15
- Game player → Glade RPG: plays
- Glade RPG → Sprite renderer: uses
- Sprite renderer → Shader: creates and binds
vertex/src/Renderer.cpp - Sprite renderer → Camera: reads projection
vertex/src/Renderer.cpp - Tilemap → Sprite renderer: draws sprites
vertex/src/Tilemap.cpp - Tilemap → Texture: reads tileset
vertex/src/Tilemap.cpp - Entity registry → Component storage: stores components
vertex/include/vertex/Registry.h - Entity registry → Entity IDs: creates and validates
vertex/include/vertex/Registry.h - Input events → Key codes: uses key codes
- Window → Key codes: uses key codes
- Brute-force collision → Collision interface: implements
- Grid collision → Collision interface: implements
- Grid collision → Spatial grid: uses grid
- Quadtree collision → Collision interface: implements
- Quadtree collision → Quadtree: uses index