How colinindiedev/minecraft-2627 works
This is an OpenGL voxel-world renderer: the runtime opens a window, configures rendering, generates and meshes chunk terrain, and draws the scene with optional shadows, HDR, and bloom. The visible excerpts establish several setup and rendering calls plus the chunk worker flow; the README is empty, and omitted source leaves some links and detailed frame ordering unverified.
Main entry points: Chunk.cpp Terrain and meshes · main.cpp Application loop · Game.hpp World coordination · Window.hpp Window and events
Components 19
Runtime and input
- Application loop
src/main.cpp - Window and events
src/Window.hpp - Camera state
src/Camera3D.hpp
Voxel world
- World coordination
src/Game.hpp - View culling
src/Frustum.hpp - Terrain and meshes
src/Chunk.cpp - Block definitions
src/BlockType.hpp
Rendering
- Block materials
src/BlockTexture.hpp - Sky cubemap
src/Cubemap.cpp - Sun rendering
src/Sun.hpp - Directional shadows
src/Shadow.hpp - HDR postprocessing
src/HDR.hpp - Bloom postprocessing
src/Bloom.hpp
Graphics support
- Shader programs
src/Shader.cpp - GPU utilities
src/GLUtil.hpp - Heap tracking
src/HeapTrack.hpp - Stack tracking
src/StackTracker.hpp
Other components
- Player
- GLFW
Connections 16
- Player → Window and events: provides input
src/Window.hpp - Application loop → Window and events: initializes
src/main.cpp - Window and events → GLFW: creates window
src/Window.hpp - World coordination → Terrain and meshes: rebuilds meshes
src/Game.hpp - World coordination → Terrain and meshes: uploads mesh data
src/Game.hpp - World coordination → Camera state: updates movement
src/Game.hpp - Terrain and meshes → Block definitions: sets block types
src/Chunk.cpp - Terrain and meshes → Block materials: selects face textures
src/Chunk.cpp - Terrain and meshes → GPU utilities: manages GPU buffers
src/Chunk.cpp - Sky cubemap → Camera state: draws from view
src/Cubemap.cpp - Application loop → Directional shadows: initializes shadows
src/main.cpp - Application loop → HDR postprocessing: initializes HDR
src/main.cpp - Application loop → Sun rendering: draws sun
src/main.cpp - Bloom postprocessing → Shader programs: uses shaders
src/Bloom.hpp - HDR postprocessing → GPU utilities: uses GPU utilities
src/HDR.hpp - Directional shadows → GPU utilities: uses GPU utilities
src/Shadow.hpp