How rohithnafeel/arc-engine works
Arc Engine is a developing C++/OpenGL 2D game engine with an ImGui editor. The current user path is Sandbox startup → Application window and frame loop → attached layers, including the EditorLayer, which renders into a framebuffer and presents it in a dockable editor viewport alongside hierarchy, inspector, and console panels. The README also lists GLFW/GLAD integration and docking as current capabilities. Physics, scenes, ECS, audio, assets, and other roadmap items have no implementation paths in the supplied tree and are omitted. Panel and dockspace call relationships are supported by the EditorLayer source; other unsampled subsystem details are not inferred.
Main entry points: Application.cpp Application loop · EditorLayer.cpp Editor layer · SandboxApp.cpp Sandbox app · Framebuffer.cpp Framebuffer
Components 18
Runtime Core
- Application loop
Engine/Core/Application.cpp - Layer stack
Engine/Core/LayerStack.cpp - Layer lifecycle
Engine/Core/Layer.cpp - GLFW windowing
ThirdParty/GLFW/include/GLFW/glfw3.h
Rendering
- Framebuffer
Engine/src/Renderer/Framebuffer.cpp - OpenGL renderer
Engine/include/Arc/Renderer/Renderer.cpp - GLAD loader
ThirdParty/GLAD/include/glad/glad.h
Editor UI
- Editor layer
Engine/Editor/EditorLayer.cpp - Dockspace
Engine/Editor/Dockspace.cpp - Viewport panel
Engine/Editor/Panels/ViewportPanel.cpp - Hierarchy panel
Engine/Editor/Panels/HierarchyPanel.cpp - Inspector panel
Engine/Editor/Panels/InspectorPanel.cpp - Console panel
Engine/Editor/Panels/ConsolePanel.cpp - ImGui UI
ThirdParty/ImGui/imgui.cpp - ImGui OpenGL backend
ThirdParty/ImGui/backends/imgui_impl_opengl3.cpp
Sandbox App
- Sandbox entry
Sandbox/src/main.cpp - Sandbox app
Sandbox/src/SandboxApp.cpp
Other components
- Developer
Connections 21
- Developer → Sandbox entry: launches
Sandbox/src/main.cpp - Sandbox entry → Sandbox app: constructs
Sandbox/src/main.cpp - Sandbox app → Application loop: inherits and runs
- Sandbox app → Editor layer: adds layer
Sandbox/src/SandboxApp.cpp - Application loop → GLFW windowing: creates window
Engine/Core/Application.cpp - Application loop → GLAD loader: loads OpenGL
Engine/Core/Application.cpp - Application loop → OpenGL renderer: initializes
Engine/Core/Application.cpp - Application loop → ImGui UI: starts frame
Engine/Core/Application.cpp - Application loop → ImGui OpenGL backend: renders draw data
Engine/Core/Application.cpp - Application loop → Layer stack: dispatches layers
Engine/Core/Application.cpp - Layer stack → Layer lifecycle: stores layers
- Application loop → GLFW windowing: polls and swaps
Engine/Core/Application.cpp - Editor layer → Framebuffer: creates and binds
Engine/Editor/EditorLayer.cpp - Editor layer → OpenGL renderer: draws frame
Engine/Editor/EditorLayer.cpp - Editor layer → Dockspace: opens and closes
Engine/Editor/EditorLayer.cpp - Editor layer → Viewport panel: renders framebuffer
Engine/Editor/EditorLayer.cpp - Editor layer → Hierarchy panel: renders
Engine/Editor/EditorLayer.cpp - Editor layer → Inspector panel: renders
Engine/Editor/EditorLayer.cpp - Editor layer → Console panel: renders
Engine/Editor/EditorLayer.cpp - Viewport panel → Framebuffer: displays attachment
Engine/Editor/Panels/ViewportPanel.cpp - Framebuffer → OpenGL renderer: receives rendering