# jj0o0/slendermantheeightglstates architecture

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

- Interactive diagram: https://gitdiagram.com/jj0o0/slendermantheeightglstates
- Repository: https://github.com/jj0o0/slendermantheeightglstates

## Overview

This repository is a C++ OpenGL game application. Its visible runtime entry point initializes the window and debug UI, initializes the game, and runs an event/update/render loop. The tree indicates distinct gameplay, world, asset-loading, and graphics subsystems; the excerpts provide concrete links for application startup and model/tree creation. Many gameplay and rendering internals are unsampled, and the README is empty, so their connections are not inferred.

Main entry points: [`src/application.cpp`](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/application.cpp) (Application Loop), [`src/playable/tree_spawner.cpp`](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/tree_spawner.cpp) (Tree Spawner), [`src/graphics/model_loader.cpp`](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/model_loader.cpp) (Model Loader), [`src/game.cpp`](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/game.cpp) (Game)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application Runtime"]
  node_main["Program Entry<br/>[main.cpp]"]
  node_application["Application Loop<br/>[application.cpp]"]
end

subgraph group_gameplay["Gameplay and World"]
  node_game["Game<br/>[game.cpp]"]
  node_world["World<br/>[world.cpp]"]
  node_player["Player Controls<br/>[player.cpp]"]
  node_camera["Camera<br/>[camera.cpp]"]
  node_entities["Entities<br/>[entity.cpp]"]
  node_tree_spawner["Tree Spawner<br/>[tree_spawner.cpp]"]
end

subgraph group_graphics["Graphics and Assets"]
  node_renderer["Game Renderer<br/>[game_renderer.cpp]"]
  node_model_loader["Model Loader<br/>[model_loader.cpp]"]
  node_materials["PBR Materials<br/>[pbr_material.cpp]"]
  node_animation["Animation Clips<br/>[animation_clip.cpp]"]
  node_shadows["Shadow Rendering"]
  node_skybox["Skybox Rendering"]
  node_debug_ui["Debug UI<br/>[debug_ui.cpp]"]
end

subgraph group_platform["Platform Services"]
  node_window["Window<br/>[window.cpp]"]
  node_config["Configuration<br/>[config_file.cpp]"]
  node_system_info["System Info<br/>[system_info.cpp]"]
  node_asset_cache[("Asset Cache<br/>[asset_manager.hpp]")]
end

subgraph group_externals["Embedded Libraries"]
  node_dialogs_api["Dialog API<br/>[tinyfiledialogs.h]"]
  node_dialogs_impl["Dialog Implementation<br/>[tinyfiledialogs.c]"]
  node_image_loader["Image Loader<br/>[stb_image.h]"]
end

node_user(("Player"))

node_user -.->|"starts"| node_application
node_main -->|"runs"| node_application
node_application -->|"loads"| node_config
node_application -->|"initializes"| node_window
node_application -->|"initializes"| node_system_info
node_application -->|"initializes"| node_debug_ui
node_application -->|"initializes"| node_game
node_application -->|"updates"| node_game
node_application -->|"renders"| node_game
node_application -->|"frames"| node_debug_ui
node_tree_spawner -->|"loads species"| node_model_loader
node_tree_spawner -->|"creates entities"| node_world
node_tree_spawner -->|"adds batches"| node_renderer
node_model_loader -->|"creates entities"| node_world
node_model_loader -->|"caches assets"| node_asset_cache

click node_main "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/main.cpp"
click node_application "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/application.cpp"
click node_game "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/game.cpp"
click node_world "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/world.cpp"
click node_player "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/player.cpp"
click node_camera "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/camera.cpp"
click node_entities "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/entity.cpp"
click node_tree_spawner "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/tree_spawner.cpp"
click node_renderer "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/game_renderer.cpp"
click node_model_loader "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/model_loader.cpp"
click node_materials "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/materials/pbr_material.cpp"
click node_animation "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/animation/animation_clip.cpp"
click node_shadows "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/shadow_renderer.cpp"
click node_skybox "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/skybox_renderer.cpp"
click node_debug_ui "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/ui/debug_ui.cpp"
click node_window "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/platform/window.cpp"
click node_config "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/platform/config_file.cpp"
click node_system_info "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/platform/system_info.cpp"
click node_asset_cache "https://github.com/jj0o0/slendermantheeightglstates/blob/main/include/platform/asset_manager.hpp"
click node_dialogs_api "https://github.com/jj0o0/slendermantheeightglstates/blob/main/external/tinyfiledialogs/tinyfiledialogs.h"
click node_dialogs_impl "https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/external/tinyfiledialogs.c"
click node_image_loader "https://github.com/jj0o0/slendermantheeightglstates/blob/main/external/stb/stb_image.h"

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_application toneBlue
class node_game,node_world,node_player,node_camera,node_entities,node_tree_spawner toneAmber
class node_renderer,node_model_loader,node_materials,node_animation,node_shadows,node_skybox,node_debug_ui toneMint
class node_window,node_config,node_system_info,node_asset_cache toneRose
class node_dialogs_api,node_dialogs_impl,node_image_loader,node_user toneIndigo
```

## Components

### Application Runtime

- [Program Entry](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/main.cpp): `src/main.cpp`
- [Application Loop](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/application.cpp): `src/application.cpp`

### Gameplay and World

- [Game](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/game.cpp): `src/game.cpp`
- [World](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/world.cpp): `src/world.cpp`
- [Player Controls](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/player.cpp): `src/playable/player.cpp`
- [Camera](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/camera.cpp): `src/playable/camera.cpp`
- [Entities](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/entity.cpp): `src/playable/entity.cpp`
- [Tree Spawner](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/playable/tree_spawner.cpp): `src/playable/tree_spawner.cpp`

### Graphics and Assets

- [Game Renderer](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/game_renderer.cpp): `src/graphics/game_renderer.cpp`
- [Model Loader](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/model_loader.cpp): `src/graphics/model_loader.cpp`
- [PBR Materials](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/materials/pbr_material.cpp): `src/graphics/materials/pbr_material.cpp`
- [Animation Clips](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/animation/animation_clip.cpp): `src/graphics/animation/animation_clip.cpp`
- [Shadow Rendering](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/shadow_renderer.cpp): `src/graphics/shadow_renderer.cpp`
- [Skybox Rendering](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/skybox_renderer.cpp): `src/graphics/skybox_renderer.cpp`
- [Debug UI](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/graphics/ui/debug_ui.cpp): `src/graphics/ui/debug_ui.cpp`

### Platform Services

- [Window](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/platform/window.cpp): `src/platform/window.cpp`
- [Configuration](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/platform/config_file.cpp): `src/platform/config_file.cpp`
- [System Info](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/platform/system_info.cpp): `src/platform/system_info.cpp`
- [Asset Cache](https://github.com/jj0o0/slendermantheeightglstates/blob/main/include/platform/asset_manager.hpp): `include/platform/asset_manager.hpp`

### Embedded Libraries

- [Dialog API](https://github.com/jj0o0/slendermantheeightglstates/blob/main/external/tinyfiledialogs/tinyfiledialogs.h): `external/tinyfiledialogs/tinyfiledialogs.h`
- [Dialog Implementation](https://github.com/jj0o0/slendermantheeightglstates/blob/main/src/external/tinyfiledialogs.c): `src/external/tinyfiledialogs.c`
- [Image Loader](https://github.com/jj0o0/slendermantheeightglstates/blob/main/external/stb/stb_image.h): `external/stb/stb_image.h`

### Other components

- **Player**

## Connections

- Player → Application Loop: starts
- Program Entry → Application Loop: runs (evidence: `src/main.cpp`)
- Application Loop → Configuration: loads (evidence: `src/application.cpp`)
- Application Loop → Window: initializes (evidence: `src/application.cpp`)
- Application Loop → System Info: initializes (evidence: `src/application.cpp`)
- Application Loop → Debug UI: initializes (evidence: `src/application.cpp`)
- Application Loop → Game: initializes (evidence: `src/application.cpp`)
- Application Loop → Game: updates (evidence: `src/application.cpp`)
- Application Loop → Game: renders (evidence: `src/application.cpp`)
- Application Loop → Debug UI: frames (evidence: `src/application.cpp`)
- Tree Spawner → Model Loader: loads species (evidence: `src/playable/tree_spawner.cpp`)
- Tree Spawner → World: creates entities (evidence: `src/playable/tree_spawner.cpp`)
- Tree Spawner → Game Renderer: adds batches (evidence: `src/playable/tree_spawner.cpp`)
- Model Loader → World: creates entities (evidence: `src/graphics/model_loader.cpp`)
- Model Loader → Asset Cache: caches assets (evidence: `src/graphics/model_loader.cpp`)
