How muangthaidotexe/graphics-engine works
Graphics Engine is a C++ application framework for creating windows and rendering interactive 3D scenes. Its principal workflow is Engine’s update loop: it updates time and the selected scene, updates UI layers, then advances the app; rendering delegates to the app, UI components, and scene. The runtime includes windowing, OpenGL/Vulkan backends, shader and texture support, scene objects, and logging. README capabilities such as lighting, mesh types, camera projections, and cubemap skies are retained; some subsystem links are omitted where sampled source does not establish calls.
Main entry points: Sample.cpp Sample Scene · Engine.cpp Engine Loop · App.cpp Core App · Graphics.h Graphics Backends
Components 23
Engine Runtime
- Engine Loop
Engine/Source/Engine/Engine.cpp - Timekeeping
Engine/Source/Engine/Time/Time.cpp - Engine UI
Engine/Source/Engine/UserInterface/Default.cpp - Hierarchy UI
Engine/Source/Engine/UserInterface/Hierarchy.cpp
Scenes and Objects
- Sample Scene
Engine/Source/Engine/Graphics/Scene/Sample.cpp - Scene Variants
Engine/Source/Engine/Graphics/Scene - Camera
Engine/Source/Engine/Graphics/Object/Camera/Camera.cpp - Primitive Meshes
Engine/Source/Engine/Graphics/Object/Mesh - Model Loading
Engine/Source/Engine/Graphics/Object/Model/Model.cpp - Lights
Engine/Source/Engine/Graphics/Object/Light/Light.cpp - Selection and Gizmos
Engine/Source/Engine/Graphics/Object/Selection/Selection.cpp - Skybox
Engine/Source/Engine/Graphics/Sky/Sky.cpp - Scene Grid
Engine/Source/Engine/Graphics/Grid/Grid.cpp
Rendering
- Graphics Backends
Core/Source/App/Graphics/Graphics.h - OpenGL Backend
Core/Source/App/Graphics/OpenGL.cpp - Vulkan Backend
Core/Source/App/Graphics/Vulkan.cpp - Shader and Buffers
Core/Source/App/Graphics/Shader/Shader.cpp - Images and Cubemaps
Core/Source/App/Graphics/Texture/Texture.cpp
Platform Services
- Core App
Core/Source/App/App.cpp - Window and Input
Core/Source/App/Window/Window.cpp - UI Rendering Layer
Core/Source/App/UserInterface/Layer.cpp - Logging
Core/Source/App/Log/Log.cpp
Other components
- Application User
Connections 23
- Application User → Engine Loop: starts
- Engine Loop → Timekeeping: updates
Engine/Source/Engine/Engine.cpp - Engine Loop → Sample Scene: creates scene
Engine/Source/Engine/Engine.cpp - Engine Loop → Scene Variants: selects scene
Engine/Source/Engine/Engine.cpp - Engine Loop → Core App: updates and renders
Engine/Source/Engine/Engine.cpp - Engine Loop → UI Rendering Layer: starts and ends layer
Engine/Source/Engine/Engine.cpp - Engine Loop → Engine UI: updates and renders
Engine/Source/Engine/Engine.cpp - Engine Loop → Hierarchy UI: creates UI
Engine/Source/Engine/Engine.cpp - Engine Loop → Sample Scene: updates and renders
Engine/Source/Engine/Engine.cpp - Sample Scene → Camera: uses
- Sample Scene → Primitive Meshes: uses
- Sample Scene → Model Loading: uses
- Sample Scene → Lights: uses
- Sample Scene → Selection and Gizmos: uses
- Sample Scene → Skybox: uses
- Sample Scene → Scene Grid: uses
- Core App → Window and Input: owns
- Core App → Graphics Backends: owns
- Core App → Logging: uses
- Graphics Backends → OpenGL Backend: implemented by
- Graphics Backends → Vulkan Backend: implemented by
- Sample Scene → Shader and Buffers: uses
- Sample Scene → Images and Cubemaps: uses