How anjolaolubusi/procdemic works
Prodemic is a small OpenGL 3D application; the visible setup creates a procedural island mesh, registers scene objects and textures, and runs through a GLFW window. Its internal layers cover geometry, scene objects and lighting, rendering resources, and window/camera support. The README identifies GLFW, OpenGL, and GLAD as runtime dependencies. Several source excerpts are incomplete, so uncertain runtime connections are omitted or marked dashed rather than treated as verified calls.
Main entry points: main.cpp Application Loop · Mesh.h Mesh Buffers · Window.h Window and Input · VertexManager.h Vertex Data
Components 18
Application
- Application Loop
src/main.cpp - Logging
src/Logger.h
Scene and Geometry
- Procedural Geometry
src/ProcGen.h - Vertex Data
src/VertexManager.h - Objects and Lights
src/Objects.h - Transforms
src/Transform.h
Rendering Resources
- Mesh Buffers
src/Mesh.h - Texture Loading
src/Texture.h - Shader Programs
src/Shader.h - Image Decoder
include/stb_image/stb_image.h - Math Types
include/glm/glm.hpp - OpenGL Loader
include/glad/glad.h
Window and UI
- Window and Input
src/Window.h - Camera
src/Camera.h - ImGui UI
include/imgui/imgui.h
Other components
- User
- GLFW
- OpenGL
Connections 23
- User → Application Loop: operates
- Application Loop → Window and Input: uses
src/main.cpp - Application Loop → Procedural Geometry: generates
src/main.cpp - Application Loop → Vertex Data: fills
src/main.cpp - Application Loop → Objects and Lights: registers
src/main.cpp - Application Loop → Texture Loading: loads
src/main.cpp - Application Loop → Camera: uses
src/main.cpp - Application Loop → ImGui UI: uses
- Procedural Geometry → Vertex Data: populates
src/ProcGen.h - Objects and Lights → Mesh Buffers: constructs
src/Objects.h - Objects and Lights → Transforms: creates
src/Objects.h - Mesh Buffers → Vertex Data: reads
src/Mesh.h - Mesh Buffers → Texture Loading: references
src/Mesh.h - Mesh Buffers → Logging: logs
src/Mesh.h - Shader Programs → Logging: logs
src/Shader.h - Camera → Window and Input: uses
src/Camera.h - Window and Input → Logging: references
src/Window.h - Texture Loading → Image Decoder: decodes
- Application Loop → OpenGL Loader: uses
- Mesh Buffers → OpenGL: uploads
- Shader Programs → OpenGL: compiles
- Window and Input → GLFW: creates window
- Vertex Data → Math Types: uses types
src/VertexManager.h