How leo5852/openengine works
OpenEngine is a small OpenGL 3D engine with Jolt-backed physics. Its visible runtime workflow initializes a GLFW window, configures shaders and physics, creates a scene of renderable objects, then updates and draws the scene while processing window events. The graph preserves distinct rendering, scene, and physics responsibilities, plus the GLFW and GLM libraries used by the application. Source coverage is limited to the supplied excerpts and SOURCE INDEX; relationships for unsampled implementation details are omitted rather than inferred.
Main entry points: main.cpp Runtime entry · scene.h Scene management · physicsWorld.cpp Physics world · renderableObject.cpp Renderable objects
Components 19
Application
- Runtime entry
src/main.cpp - Scene management
include/scene.h - Player control
src/player.cpp
Rendering
- Renderable objects
src/renderableObject.cpp - Cube geometry
src/cube.cpp - Plane geometry
src/plane.cpp - Wireframe geometry
src/wireframe.cpp - Shader program
src/shader.cpp - Lighting data
include/light.h
Physics
- Game objects
include/gameObject.h - Physics world
src/physicsWorld.cpp - Collider types
include/collider.h - Box collider
include/boxCollider.h - Sphere collider
include/sphereCollider.h - Jolt conversions
include/joltConversions.h
Runtime dependencies
- Window and input API
dependencies/glfw-3.4/include/GLFW/glfw3.h - GLFW platform core
dependencies/glfw-3.4/src/internal.h - GLM math library
dependencies/glm/glm/glm.hpp
Other components
- Engine user
Connections 23
- Engine user → Runtime entry: starts
- Runtime entry → Window and input API: creates window
src/main.cpp - Runtime entry → Shader program: configures shaders
src/main.cpp - Runtime entry → Player control: creates character
src/main.cpp - Runtime entry → Physics world: initializes
src/main.cpp - Runtime entry → Scene management: creates scene
src/main.cpp - Runtime entry → Cube geometry: spawns
src/main.cpp - Runtime entry → Plane geometry: spawns
src/main.cpp - Runtime entry → Lighting data: uploads lights
src/main.cpp - Runtime entry → Window and input API: polls events
src/main.cpp - Runtime entry → Scene management: draws scene
src/main.cpp - Runtime entry → GLM math library: uses transforms
src/main.cpp - Scene management → Renderable objects: uses renderables
include/scene.h - Scene management → Physics world: holds physics world
include/scene.h - Scene management → Lighting data: uses lighting
include/scene.h - Game objects → Collider types: uses collider
include/gameObject.h - Physics world → Game objects: builds bodies from
src/physicsWorld.cpp - Physics world → Box collider: handles shapes
src/physicsWorld.cpp - Physics world → Jolt conversions: uses conversions
src/physicsWorld.cpp - Cube geometry → Renderable objects: specializes
- Plane geometry → Renderable objects: specializes
- Wireframe geometry → Renderable objects: uses base
- Window and input API → GLFW platform core: implemented by
dependencies/glfw-3.4/src/internal.h