How iddeqpt/engine works
Engine is a cross-platform C++ game-engine library. An application supplies a root node; Engine initializes shared services and a window, then runs an event, node-update, physics, and rendering loop until the window closes. Rendering has distinct 2D canvas and 3D world paths backed by shader pipelines and selectable graphics APIs. The repository also provides input, configuration/signals, resources, 2D physics, fonts, image textures, and math. The graph preserves README capabilities, but unsampled implementation links are omitted or marked unverified.
Main entry points: Engine.cpp Engine Loop · Api.cpp Graphics API · PhysicsWorld.cpp Physics World · Window.cpp Window
Components 25
Engine Runtime
- Engine Loop
src/Core/Engine.cpp - Root Node Tree
src/Core/Node.cpp - Configuration
src/Core/ConfigManager.cpp - Signal Bus
src/Core/SignalBus.cpp - Time Manager
src/Core/TimeManager.cpp
Rendering
- 2D Canvas
src/Graphics/2D/RenderCanvas.cpp - 3D World
src/Graphics/3D/RenderWorld.cpp - Default Shaders
src/Core/shaders/default3d-deferred-frag.hpp - Shader Programs
src/Graphics/Shader.cpp - Graphics API
src/Graphics/GL/Api.cpp - OpenGL 3.3 Backend
src/Graphics/GL/OpenGL33/Api.cpp - Null Backend
src/Graphics/GL/Null/Api.cpp
Window and Input
- Event Manager
src/System/EventManager.cpp - Window
src/System/Window.cpp - Keyboard and Mouse
src/System/Keyboard.cpp
Physics and Math
- Physics World
src/Physics/PhysicsWorld.cpp - 2D Collision
src/Physics/2D/CollisionDetector2D.cpp - Math Library
src/Math/Mat4.cpp
Resources and Assets
- Resource Manager
src/Core/ResourceManager.cpp - Textures and Images
src/Graphics/Texture.cpp - TrueType Fonts
src/Graphics/Font.cpp
Other components
- Application
- GLFW
- FreeType
- stb_image
Connections 27
- Application → Engine Loop: starts with root
src/Core/Engine.cpp - Engine Loop → Window: initializes
src/Core/Engine.cpp - Engine Loop → Event Manager: pulls events
src/Core/Engine.cpp - Engine Loop → Root Node Tree: updates tree
src/Core/Engine.cpp - Engine Loop → Physics World: updates physics
src/Core/Engine.cpp - Engine Loop → 3D World: renders world
src/Core/Engine.cpp - Engine Loop → 2D Canvas: renders canvas
src/Core/Engine.cpp - Engine Loop → Time Manager: limits frame rate
src/Core/Engine.cpp - Engine Loop → Configuration: notifies settings
src/Core/Engine.cpp - Engine Loop → Signal Bus: subscribes changes
src/Core/Engine.cpp - Engine Loop → Resource Manager: creates service
src/Core/Engine.cpp - Engine Loop → Default Shaders: loads shader sources
src/Core/Engine.cpp - Engine Loop → Shader Programs: creates pipelines
src/Core/Engine.cpp - Engine Loop → Graphics API: initializes
src/Core/Engine.cpp - Engine Loop → Window: clears and displays
src/Core/Engine.cpp - Graphics API → OpenGL 3.3 Backend: selects backend
- Graphics API → Null Backend: selects backend
- OpenGL 3.3 Backend → GLFW: loads GL functions
src/Graphics/GL/OpenGL33/Api.cpp - 2D Canvas → Default Shaders: uses 2D pipeline
- 3D World → Default Shaders: uses deferred pipeline
- Physics World → 2D Collision: runs collision
- Event Manager → Keyboard and Mouse: dispatches input
- Window → GLFW: uses window system
README.md - TrueType Fonts → FreeType: loads TrueType
README.md - Textures and Images → stb_image: loads image files
README.md - Root Node Tree → Math Library: uses transforms
- Physics World → Math Library: uses math types