# spaceape3001/yq-vulqan architecture

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

- Interactive diagram: https://gitdiagram.com/spaceape3001/yq-vulqan
- Repository: https://github.com/spaceape3001/yq-vulqan

## Overview

Vulkan/Visual Engine is a C++ framework for Vulkan-based visual applications, with scene editing, camera interaction, asset editing, scripting, and example viewers. The clearest user workflow is opening the Scenery Editor, importing files, and working with scene content; the README describes adding and placing objects and navigating the scene. The graph also preserves the camera and graphics examples and the framework’s pipeline and scripting subsystems. Edges are limited to relationships shown in the README or sampled entry-point code; unsampled internals are represented without guessed call chains.

Main entry points: [`exe/scenery/SceneEditor.cpp`](https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/SceneEditor.cpp) (Scene editor), [`exe/scenery/main.cpp`](https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/main.cpp) (Scenery entry), [`sdk/camera/main.cpp`](https://github.com/spaceape3001/yq-vulqan/blob/master/sdk/camera/main.cpp) (Camera example), [`api/yq/tachyon/pipeline/Pipeline.hpp`](https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/pipeline/Pipeline.hpp) (Render pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Applications"]
  node_scenery_entry["Scenery entry<br/>[main.cpp]"]
  node_scene_editor["Scene editor<br/>[SceneEditor.cpp]"]
  node_camera_example["Camera example<br/>[main.cpp]"]
  node_hello_example["Hello Triangle<br/>[hello.cpp]"]
  node_gltf_viewer["glTF viewer<br/>[main.cpp]"]
  node_scene_app["Scene app shell<br/>[SceneApp.hpp]"]
end

subgraph group_runtime["Engine Runtime"]
  node_engine_manager["Engine manager<br/>[Engine.cpp]"]
  node_engine_units["Engine units<br/>[engine.cpp]"]
end

subgraph group_scene["Scene and Assets"]
  node_scene_entities["Scene entities"]
  node_spatial_objects["Spatial objects"]
  node_rendered_assets["Rendered assets"]
  node_asset_editors["Asset editors"]
  node_file_io["File I/O manager<br/>[FileIOManager.cpp]"]
end

subgraph group_render["Rendering"]
  node_pipeline["Render pipeline<br/>[Pipeline.hpp]"]
  node_vulkan_pipeline["Vulkan pipeline<br/>[ViPipeline.cpp]"]
end

subgraph group_extensions["Extensions"]
  node_lua_runtime["Lua VM<br/>[LuaTVM.cpp]"]
  node_lua_plugin["Lua bindings<br/>[frame.cpp]"]
end

node_user(("Visual app user"))

node_user -->|"opens editor"| node_scenery_entry
node_scenery_entry -->|"constructs app"| node_scene_app
node_scenery_entry -->|"creates manager"| node_file_io
node_scenery_entry -->|"creates editor"| node_scene_editor
node_scenery_entry -->|"passes imports"| node_scene_editor
node_user -->|"runs example"| node_camera_example
node_camera_example -.->|"uses camera UI"| node_pipeline
node_user -->|"runs example"| node_hello_example
node_user -.->|"opens model"| node_gltf_viewer
node_engine_manager -.->|"uses units"| node_engine_units
node_scene_editor -.->|"edits scenes"| node_scene_entities
node_scene_editor -.->|"places objects"| node_spatial_objects
node_scene_editor -.->|"edits content"| node_rendered_assets
node_scene_editor -.->|"edits assets"| node_asset_editors
node_pipeline -.->|"configures Vulkan"| node_vulkan_pipeline
node_lua_runtime -.->|"uses bindings"| node_lua_plugin

click node_scenery_entry "https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/main.cpp"
click node_scene_editor "https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/SceneEditor.cpp"
click node_camera_example "https://github.com/spaceape3001/yq-vulqan/blob/master/sdk/camera/main.cpp"
click node_hello_example "https://github.com/spaceape3001/yq-vulqan/blob/master/sdk/hello/hello.cpp"
click node_gltf_viewer "https://github.com/spaceape3001/yq-vulqan/blob/master/exe/gltf/main.cpp"
click node_engine_manager "https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/app/Engine.cpp"
click node_engine_units "https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/engine.cpp"
click node_scene_entities "https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/scene"
click node_spatial_objects "https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/spatial"
click node_rendered_assets "https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/rendered"
click node_asset_editors "https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/edit"
click node_file_io "https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/asset/io/FileIOManager.cpp"
click node_pipeline "https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/pipeline/Pipeline.hpp"
click node_vulkan_pipeline "https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/vulkan/ViPipeline.cpp"
click node_lua_runtime "https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/luavk/LuaTVM.cpp"
click node_lua_plugin "https://github.com/spaceape3001/yq-vulqan/blob/master/plugins/lua/tachyonlua/frame.cpp"
click node_scene_app "https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/SceneApp.hpp"

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_scenery_entry,node_scene_editor,node_camera_example,node_hello_example,node_gltf_viewer,node_scene_app,node_user toneBlue
class node_engine_manager,node_engine_units toneAmber
class node_scene_entities,node_spatial_objects,node_rendered_assets,node_asset_editors,node_file_io toneMint
class node_pipeline,node_vulkan_pipeline toneRose
class node_lua_runtime,node_lua_plugin toneIndigo
```

## Components

### Applications

- [Scenery entry](https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/main.cpp): `exe/scenery/main.cpp`
- [Scene editor](https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/SceneEditor.cpp): `exe/scenery/SceneEditor.cpp`
- [Camera example](https://github.com/spaceape3001/yq-vulqan/blob/master/sdk/camera/main.cpp): `sdk/camera/main.cpp`
- [Hello Triangle](https://github.com/spaceape3001/yq-vulqan/blob/master/sdk/hello/hello.cpp): `sdk/hello/hello.cpp`
- [glTF viewer](https://github.com/spaceape3001/yq-vulqan/blob/master/exe/gltf/main.cpp): `exe/gltf/main.cpp`
- [Scene app shell](https://github.com/spaceape3001/yq-vulqan/blob/master/exe/scenery/SceneApp.hpp): `exe/scenery/SceneApp.hpp`

### Engine Runtime

- [Engine manager](https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/app/Engine.cpp): `api/yq/tachyon/app/Engine.cpp`
- [Engine units](https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/engine.cpp): `api/yq/tachyon/engine.cpp`

### Scene and Assets

- [Scene entities](https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/scene): `api/yq/asset/scene`
- [Spatial objects](https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/spatial): `api/yq/asset/spatial`
- [Rendered assets](https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/rendered): `api/yq/asset/rendered`
- [Asset editors](https://github.com/spaceape3001/yq-vulqan/tree/master/api/yq/asset/edit): `api/yq/asset/edit`
- [File I/O manager](https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/asset/io/FileIOManager.cpp): `api/yq/asset/io/FileIOManager.cpp`

### Rendering

- [Render pipeline](https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/pipeline/Pipeline.hpp): `api/yq/tachyon/pipeline/Pipeline.hpp`
- [Vulkan pipeline](https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/tachyon/vulkan/ViPipeline.cpp): `api/yq/tachyon/vulkan/ViPipeline.cpp`

### Extensions

- [Lua VM](https://github.com/spaceape3001/yq-vulqan/blob/master/api/yq/luavk/LuaTVM.cpp): `api/yq/luavk/LuaTVM.cpp`
- [Lua bindings](https://github.com/spaceape3001/yq-vulqan/blob/master/plugins/lua/tachyonlua/frame.cpp): `plugins/lua/tachyonlua/frame.cpp`

### Other components

- **Visual app user**

## Connections

- Visual app user → Scenery entry: opens editor
- Scenery entry → Scene app shell: constructs app (evidence: `exe/scenery/main.cpp`)
- Scenery entry → File I/O manager: creates manager (evidence: `exe/scenery/main.cpp`)
- Scenery entry → Scene editor: creates editor (evidence: `exe/scenery/main.cpp`)
- Scenery entry → Scene editor: passes imports (evidence: `exe/scenery/main.cpp`)
- Visual app user → Camera example: runs example
- Camera example → Render pipeline: uses camera UI
- Visual app user → Hello Triangle: runs example
- Visual app user → glTF viewer: opens model
- Engine manager → Engine units: uses units
- Scene editor → Scene entities: edits scenes
- Scene editor → Spatial objects: places objects
- Scene editor → Rendered assets: edits content
- Scene editor → Asset editors: edits assets
- Render pipeline → Vulkan pipeline: configures Vulkan
- Lua VM → Lua bindings: uses bindings
