# vertexf/void architecture

> Architecture diagram of the GitHub repository vertexf/void, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/vertexf/void
- Repository: https://github.com/vertexf/void

## Overview

Void is a Vulkan-focused 3D game engine aimed at supporting 3D platformers. Its visible startup path initializes platform, input, graphics, UI, and audio services, runs the main menu, then enters the game loop unless the window requests exit. The game combines scene/player state, Jolt-based physics, and rendering features including GLTF loading, skyboxes, particles, and debug UI. Several capabilities are documented or named in the source index but their implementation was not sampled, so those subsystem links are shown only where the available references support them.

Main entry points: [`src/Game/Game.cpp`](https://github.com/vertexf/void/blob/master/src/Game/Game.cpp) (Game loop), [`src/main.cpp`](https://github.com/vertexf/void/blob/master/src/main.cpp) (Application entry), [`src/Graphics/GPUDevice.cpp`](https://github.com/vertexf/void/blob/master/src/Graphics/GPUDevice.cpp) (Vulkan device), [`src/Physics/Physics.hpp`](https://github.com/vertexf/void/blob/master/src/Physics/Physics.hpp) (Jolt physics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime and input"]
  node_main["Application entry<br/>[main.cpp]"]
  node_window["Window<br/>[Window.hpp]"]
  node_input["Input handler<br/>[Input.cpp]"]
  node_audio["Audio system<br/>[Audio.cpp]"]
  node_ui["UI service<br/>[UserInterface.hpp]"]
end

subgraph group_gameplay["Game and scenes"]
  node_menu["Main menu<br/>[MainMenu.cpp]"]
  node_game["Game loop<br/>[Game.cpp]"]
  node_scene["Scene management<br/>[Scene.cpp]"]
  node_player["Player gameplay<br/>[Player.hpp]"]
  node_physics["Jolt physics<br/>[Physics.hpp]"]
  node_contact["Contact listener"]
end

subgraph group_rendering["Vulkan rendering"]
  node_gpu["Vulkan device<br/>[GPUDevice.cpp]"]
  node_commands["Command buffers<br/>[CommandBuffer.hpp]"]
  node_gltf["GLTF loading<br/>[LoadGLTF.cpp]"]
  node_skybox["Skybox rendering<br/>[Skybox.hpp]"]
  node_particles["Particle rendering"]
end

subgraph group_foundation["Engine foundation"]
  node_memory["Memory allocators<br/>[Memory.hpp]"]
  node_files["File access<br/>[File.hpp]"]
end

node_user(("Player"))

node_user -->|"provides input"| node_input
node_main -->|"initializes"| node_window
node_main -->|"initializes"| node_input
node_main -->|"initializes"| node_gpu
node_main -->|"initializes"| node_audio
node_main -->|"runs first"| node_menu
node_main -->|"runs after menu"| node_game
node_main -->|"initializes"| node_memory
node_main -->|"initializes"| node_ui
node_menu -.->|"hands off"| node_game
node_game -.->|"reads controls"| node_input
node_game -->|"uses scene"| node_scene
node_game -->|"uses player"| node_player
node_game -->|"queries transforms"| node_physics
node_scene -->|"uses physics"| node_physics
node_physics -->|"registers listener"| node_contact
node_game -->|"submits frames"| node_gpu
node_game -->|"records draws"| node_commands
node_gpu -->|"provides buffers"| node_commands
node_game -->|"loads models"| node_gltf
node_game -->|"uses skybox"| node_skybox
node_game -->|"updates and draws"| node_particles
node_game -->|"uses interface"| node_ui
node_game -->|"reads assets"| node_files
node_gpu -->|"uses allocators"| node_memory

click node_main "https://github.com/vertexf/void/blob/master/src/main.cpp"
click node_window "https://github.com/vertexf/void/blob/master/src/Application/Window.hpp"
click node_input "https://github.com/vertexf/void/blob/master/src/Application/Input.cpp"
click node_audio "https://github.com/vertexf/void/blob/master/src/Application/Audio.cpp"
click node_menu "https://github.com/vertexf/void/blob/master/src/Game/MainMenu.cpp"
click node_game "https://github.com/vertexf/void/blob/master/src/Game/Game.cpp"
click node_scene "https://github.com/vertexf/void/blob/master/src/Game/Scene.cpp"
click node_player "https://github.com/vertexf/void/blob/master/src/Game/Player.hpp"
click node_physics "https://github.com/vertexf/void/blob/master/src/Physics/Physics.hpp"
click node_contact "https://github.com/vertexf/void/blob/master/src/Physics/ContactListener.cpp"
click node_gpu "https://github.com/vertexf/void/blob/master/src/Graphics/GPUDevice.cpp"
click node_commands "https://github.com/vertexf/void/blob/master/src/Graphics/CommandBuffer.hpp"
click node_gltf "https://github.com/vertexf/void/blob/master/src/Graphics/LoadGLTF.cpp"
click node_skybox "https://github.com/vertexf/void/blob/master/src/Graphics/Skybox.hpp"
click node_particles "https://github.com/vertexf/void/blob/master/src/Graphics/ParticleRenderer.cpp"
click node_ui "https://github.com/vertexf/void/blob/master/src/Application/UserInterface.hpp"
click node_memory "https://github.com/vertexf/void/blob/master/src/Foundation/Memory.hpp"
click node_files "https://github.com/vertexf/void/blob/master/src/Foundation/File.hpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_window,node_input,node_audio,node_ui toneBlue
class node_menu,node_game,node_scene,node_player,node_physics,node_contact toneAmber
class node_gpu,node_commands,node_gltf,node_skybox,node_particles toneMint
class node_memory,node_files toneRose
class node_user toneIndigo
```

## Components

### Runtime and input

- [Application entry](https://github.com/vertexf/void/blob/master/src/main.cpp): `src/main.cpp`
- [Window](https://github.com/vertexf/void/blob/master/src/Application/Window.hpp): `src/Application/Window.hpp`
- [Input handler](https://github.com/vertexf/void/blob/master/src/Application/Input.cpp): `src/Application/Input.cpp`
- [Audio system](https://github.com/vertexf/void/blob/master/src/Application/Audio.cpp): `src/Application/Audio.cpp`
- [UI service](https://github.com/vertexf/void/blob/master/src/Application/UserInterface.hpp): `src/Application/UserInterface.hpp`

### Game and scenes

- [Main menu](https://github.com/vertexf/void/blob/master/src/Game/MainMenu.cpp): `src/Game/MainMenu.cpp`
- [Game loop](https://github.com/vertexf/void/blob/master/src/Game/Game.cpp): `src/Game/Game.cpp`
- [Scene management](https://github.com/vertexf/void/blob/master/src/Game/Scene.cpp): `src/Game/Scene.cpp`
- [Player gameplay](https://github.com/vertexf/void/blob/master/src/Game/Player.hpp): `src/Game/Player.hpp`
- [Jolt physics](https://github.com/vertexf/void/blob/master/src/Physics/Physics.hpp): `src/Physics/Physics.hpp`
- [Contact listener](https://github.com/vertexf/void/blob/master/src/Physics/ContactListener.cpp): `src/Physics/ContactListener.cpp`

### Vulkan rendering

- [Vulkan device](https://github.com/vertexf/void/blob/master/src/Graphics/GPUDevice.cpp): `src/Graphics/GPUDevice.cpp`
- [Command buffers](https://github.com/vertexf/void/blob/master/src/Graphics/CommandBuffer.hpp): `src/Graphics/CommandBuffer.hpp`
- [GLTF loading](https://github.com/vertexf/void/blob/master/src/Graphics/LoadGLTF.cpp): `src/Graphics/LoadGLTF.cpp`
- [Skybox rendering](https://github.com/vertexf/void/blob/master/src/Graphics/Skybox.hpp): `src/Graphics/Skybox.hpp`
- [Particle rendering](https://github.com/vertexf/void/blob/master/src/Graphics/ParticleRenderer.cpp): `src/Graphics/ParticleRenderer.cpp`

### Engine foundation

- [Memory allocators](https://github.com/vertexf/void/blob/master/src/Foundation/Memory.hpp): `src/Foundation/Memory.hpp`
- [File access](https://github.com/vertexf/void/blob/master/src/Foundation/File.hpp): `src/Foundation/File.hpp`

### Other components

- **Player**

## Connections

- Player → Input handler: provides input (evidence: `src/Application/Input.cpp`)
- Application entry → Window: initializes (evidence: `src/main.cpp`)
- Application entry → Input handler: initializes (evidence: `src/main.cpp`)
- Application entry → Vulkan device: initializes (evidence: `src/main.cpp`)
- Application entry → Audio system: initializes (evidence: `src/main.cpp`)
- Application entry → Main menu: runs first (evidence: `src/main.cpp`)
- Application entry → Game loop: runs after menu (evidence: `src/main.cpp`)
- Application entry → Memory allocators: initializes (evidence: `src/main.cpp`)
- Application entry → UI service: initializes (evidence: `src/main.cpp`)
- Main menu → Game loop: hands off
- Game loop → Input handler: reads controls
- Game loop → Scene management: uses scene
- Game loop → Player gameplay: uses player
- Game loop → Jolt physics: queries transforms (evidence: `src/Game/Game.cpp`)
- Scene management → Jolt physics: uses physics (evidence: `src/Game/Scene.cpp`)
- Jolt physics → Contact listener: registers listener (evidence: `src/Physics/Physics.hpp`)
- Game loop → Vulkan device: submits frames (evidence: `src/Game/Game.cpp`)
- Game loop → Command buffers: records draws (evidence: `src/Game/Game.cpp`)
- Vulkan device → Command buffers: provides buffers (evidence: `src/Graphics/GPUDevice.cpp`)
- Game loop → GLTF loading: loads models (evidence: `src/Game/Game.cpp`)
- Game loop → Skybox rendering: uses skybox (evidence: `src/Game/Game.cpp`)
- Game loop → Particle rendering: updates and draws (evidence: `src/Game/Game.cpp`)
- Game loop → UI service: uses interface (evidence: `src/Game/Game.cpp`)
- Game loop → File access: reads assets (evidence: `src/Game/Game.cpp`)
- Vulkan device → Memory allocators: uses allocators (evidence: `src/Graphics/GPUDevice.cpp`)
