# beerus20/allinone architecture

> Architecture diagram of the GitHub repository beerus20/allinone, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/beerus20/allinone
- Repository: https://github.com/beerus20/allinone

## Overview

One is a C++ graphics engine for building extensible graphical applications. Its documented workflow is: an application initializes a renderer and core services, processes events, updates UI and plugins, then renders a frame through a selected backend. The graph preserves the event, resource, data, widget, and plugin capabilities shown in the README and tree. Some workflow links rely on README descriptions; unsampled implementations and optional backend details are not inferred beyond those descriptions.

Main entry points: [`src/core/Application.cpp`](https://github.com/beerus20/allinone/blob/main/src/core/Application.cpp) (Application), [`include/core/IRenderer.hpp`](https://github.com/beerus20/allinone/blob/main/include/core/IRenderer.hpp) (Renderer Interface), [`src/plugins/PluginManager.cpp`](https://github.com/beerus20/allinone/blob/main/src/plugins/PluginManager.cpp) (Plugin Manager), [`src/ui/UISystem.cpp`](https://github.com/beerus20/allinone/blob/main/src/ui/UISystem.cpp) (UI System)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application Core"]
  node_entry["Program Entry<br/>[main.cpp]"]
  node_application["Application<br/>[Application.cpp]"]
  node_config["Configuration<br/>[Config.cpp]"]
  node_logger["Logger<br/>[Logger.cpp]"]
end

subgraph group_render["Rendering"]
  node_renderer_interface["Renderer Interface<br/>[IRenderer.hpp]"]
  node_sdl["SDL Backend<br/>[SDLRenderer.cpp]"]
  node_opengl["OpenGL Backend<br/>[OpenGLRenderer.cpp]"]
  node_mlx["MinilibX Backend"]
  node_vulkan["Vulkan Backend<br/>[VulkanRenderer.cpp]"]
end

subgraph group_plugins["Plugins"]
  node_plugin_manager["Plugin Manager<br/>[PluginManager.cpp]"]
  node_video_plugin["Video Player"]
  node_image_plugin["Image Viewer"]
  node_terminal_plugin["Terminal Plugin<br/>[TerminalPlugin.cpp]"]
  node_plugin_context["Plugin Context<br/>[PluginContext.hpp]"]
end

subgraph group_ui_events["UI and Events"]
  node_ui_system["UI System<br/>[UISystem.cpp]"]
  node_window["Window Widget<br/>[Window.cpp]"]
  node_button["Button Widget<br/>[Button.cpp]"]
  node_event_manager["Event Manager<br/>[EventManager.cpp]"]
end

subgraph group_resources_data["Resources and Data"]
  node_resource_manager[("Resource Manager")]
  node_texture["Texture<br/>[Texture.cpp]"]
  node_font["Font<br/>[Font.cpp]"]
  node_data["Data Management<br/>[Data.cpp]"]
  node_json["JSON Library<br/>[json.hpp]"]
end

node_user(("Application User"))

node_user -->|"starts"| node_entry
node_entry -->|"initializes"| node_application
node_application -->|"uses settings"| node_config
node_application -->|"orchestrates"| node_renderer_interface
node_application -->|"updates and renders"| node_plugin_manager
node_application -->|"updates and renders"| node_ui_system
node_application -->|"processes events"| node_event_manager
node_application -->|"manages resources"| node_resource_manager
node_renderer_interface -->|"implemented by"| node_sdl
node_renderer_interface -->|"implemented by"| node_opengl
node_renderer_interface -->|"implemented by"| node_mlx
node_renderer_interface -->|"implemented by"| node_vulkan
node_plugin_manager -->|"loads"| node_video_plugin
node_plugin_manager -->|"loads"| node_image_plugin
node_plugin_manager -->|"loads"| node_terminal_plugin
node_plugin_manager -->|"provides context"| node_plugin_context
node_ui_system -->|"manages widgets"| node_window
node_ui_system -->|"manages widgets"| node_button
node_event_manager -.->|"dispatches events"| node_ui_system
node_resource_manager -->|"loads and caches"| node_texture
node_resource_manager -->|"loads and caches"| node_font
node_config -->|"uses data"| node_data
node_data -->|"extends"| node_json
node_application -->|"logs"| node_logger

click node_entry "https://github.com/beerus20/allinone/blob/main/src/main.cpp"
click node_application "https://github.com/beerus20/allinone/blob/main/src/core/Application.cpp"
click node_config "https://github.com/beerus20/allinone/blob/main/src/core/Config.cpp"
click node_renderer_interface "https://github.com/beerus20/allinone/blob/main/include/core/IRenderer.hpp"
click node_sdl "https://github.com/beerus20/allinone/blob/main/src/backends/SDLRenderer.cpp"
click node_opengl "https://github.com/beerus20/allinone/blob/main/src/backends/OpenGLRenderer.cpp"
click node_mlx "https://github.com/beerus20/allinone/blob/main/src/backends/MinilibXRenderer.cpp"
click node_vulkan "https://github.com/beerus20/allinone/blob/main/src/backends/VulkanRenderer.cpp"
click node_plugin_manager "https://github.com/beerus20/allinone/blob/main/src/plugins/PluginManager.cpp"
click node_video_plugin "https://github.com/beerus20/allinone/blob/main/plugins/video-player/VideoPlayerPlugin.cpp"
click node_image_plugin "https://github.com/beerus20/allinone/blob/main/plugins/image-viewer/ImageViewerPlugin.cpp"
click node_terminal_plugin "https://github.com/beerus20/allinone/blob/main/plugins/terminal/TerminalPlugin.cpp"
click node_plugin_context "https://github.com/beerus20/allinone/blob/main/include/plugins/PluginContext.hpp"
click node_ui_system "https://github.com/beerus20/allinone/blob/main/src/ui/UISystem.cpp"
click node_window "https://github.com/beerus20/allinone/blob/main/src/ui/Window.cpp"
click node_button "https://github.com/beerus20/allinone/blob/main/src/ui/Button.cpp"
click node_event_manager "https://github.com/beerus20/allinone/blob/main/src/events/EventManager.cpp"
click node_resource_manager "https://github.com/beerus20/allinone/blob/main/src/resources/ResourceManager.cpp"
click node_texture "https://github.com/beerus20/allinone/blob/main/src/resources/Texture.cpp"
click node_font "https://github.com/beerus20/allinone/blob/main/src/resources/Font.cpp"
click node_data "https://github.com/beerus20/allinone/blob/main/src/data/Data.cpp"
click node_json "https://github.com/beerus20/allinone/blob/main/include/data/json.hpp"
click node_logger "https://github.com/beerus20/allinone/blob/main/src/utils/Logger.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_entry,node_application,node_config,node_logger,node_user toneBlue
class node_renderer_interface,node_sdl,node_opengl,node_mlx,node_vulkan toneAmber
class node_plugin_manager,node_video_plugin,node_image_plugin,node_terminal_plugin,node_plugin_context toneMint
class node_ui_system,node_window,node_button,node_event_manager toneRose
class node_resource_manager,node_texture,node_font,node_data,node_json toneIndigo
```

## Components

### Application Core

- [Program Entry](https://github.com/beerus20/allinone/blob/main/src/main.cpp): `src/main.cpp`
- [Application](https://github.com/beerus20/allinone/blob/main/src/core/Application.cpp): `src/core/Application.cpp`
- [Configuration](https://github.com/beerus20/allinone/blob/main/src/core/Config.cpp): `src/core/Config.cpp`
- [Logger](https://github.com/beerus20/allinone/blob/main/src/utils/Logger.cpp): `src/utils/Logger.cpp`

### Rendering

- [Renderer Interface](https://github.com/beerus20/allinone/blob/main/include/core/IRenderer.hpp): `include/core/IRenderer.hpp`
- [SDL Backend](https://github.com/beerus20/allinone/blob/main/src/backends/SDLRenderer.cpp): `src/backends/SDLRenderer.cpp`
- [OpenGL Backend](https://github.com/beerus20/allinone/blob/main/src/backends/OpenGLRenderer.cpp): `src/backends/OpenGLRenderer.cpp`
- [MinilibX Backend](https://github.com/beerus20/allinone/blob/main/src/backends/MinilibXRenderer.cpp): `src/backends/MinilibXRenderer.cpp`
- [Vulkan Backend](https://github.com/beerus20/allinone/blob/main/src/backends/VulkanRenderer.cpp): `src/backends/VulkanRenderer.cpp`

### Plugins

- [Plugin Manager](https://github.com/beerus20/allinone/blob/main/src/plugins/PluginManager.cpp): `src/plugins/PluginManager.cpp`
- [Video Player](https://github.com/beerus20/allinone/blob/main/plugins/video-player/VideoPlayerPlugin.cpp): `plugins/video-player/VideoPlayerPlugin.cpp`
- [Image Viewer](https://github.com/beerus20/allinone/blob/main/plugins/image-viewer/ImageViewerPlugin.cpp): `plugins/image-viewer/ImageViewerPlugin.cpp`
- [Terminal Plugin](https://github.com/beerus20/allinone/blob/main/plugins/terminal/TerminalPlugin.cpp): `plugins/terminal/TerminalPlugin.cpp`
- [Plugin Context](https://github.com/beerus20/allinone/blob/main/include/plugins/PluginContext.hpp): `include/plugins/PluginContext.hpp`

### UI and Events

- [UI System](https://github.com/beerus20/allinone/blob/main/src/ui/UISystem.cpp): `src/ui/UISystem.cpp`
- [Window Widget](https://github.com/beerus20/allinone/blob/main/src/ui/Window.cpp): `src/ui/Window.cpp`
- [Button Widget](https://github.com/beerus20/allinone/blob/main/src/ui/Button.cpp): `src/ui/Button.cpp`
- [Event Manager](https://github.com/beerus20/allinone/blob/main/src/events/EventManager.cpp): `src/events/EventManager.cpp`

### Resources and Data

- [Resource Manager](https://github.com/beerus20/allinone/blob/main/src/resources/ResourceManager.cpp): `src/resources/ResourceManager.cpp`
- [Texture](https://github.com/beerus20/allinone/blob/main/src/resources/Texture.cpp): `src/resources/Texture.cpp`
- [Font](https://github.com/beerus20/allinone/blob/main/src/resources/Font.cpp): `src/resources/Font.cpp`
- [Data Management](https://github.com/beerus20/allinone/blob/main/src/data/Data.cpp): `src/data/Data.cpp`
- [JSON Library](https://github.com/beerus20/allinone/blob/main/include/data/json.hpp): `include/data/json.hpp`

### Other components

- **Application User**

## Connections

- Application User → Program Entry: starts (evidence: `README.md`)
- Program Entry → Application: initializes (evidence: `src/main.cpp`)
- Application → Configuration: uses settings (evidence: `README.md`)
- Application → Renderer Interface: orchestrates (evidence: `README.md`)
- Application → Plugin Manager: updates and renders (evidence: `README.md`)
- Application → UI System: updates and renders (evidence: `README.md`)
- Application → Event Manager: processes events (evidence: `README.md`)
- Application → Resource Manager: manages resources (evidence: `README.md`)
- Renderer Interface → SDL Backend: implemented by (evidence: `README.md`)
- Renderer Interface → OpenGL Backend: implemented by (evidence: `README.md`)
- Renderer Interface → MinilibX Backend: implemented by (evidence: `README.md`)
- Renderer Interface → Vulkan Backend: implemented by (evidence: `README.md`)
- Plugin Manager → Video Player: loads (evidence: `README.md`)
- Plugin Manager → Image Viewer: loads (evidence: `README.md`)
- Plugin Manager → Terminal Plugin: loads (evidence: `README.md`)
- Plugin Manager → Plugin Context: provides context
- UI System → Window Widget: manages widgets (evidence: `README.md`)
- UI System → Button Widget: manages widgets (evidence: `README.md`)
- Event Manager → UI System: dispatches events
- Resource Manager → Texture: loads and caches
- Resource Manager → Font: loads and caches
- Configuration → Data Management: uses data
- Data Management → JSON Library: extends
- Application → Logger: logs (evidence: `src/core/Application.cpp`)
