How timothesandt/orosmo works
Orosmo is a C++ game engine whose principal workflow is generating procedural terrain and viewing it through the renderer; the README identifies the terrain generator and viewer as product applications using the internal world modules. The engine also provides platform services, a graphics abstraction and OpenGL backend, rendering, and a widget UI. Its .cui language is compiled to C++ for that UI. Edges are limited to relationships documented in the README or visible in supplied excerpts and the source index; unsampled implementation details are not inferred.
Main entry points: main.rs CUI compiler CLI · device.hpp Graphics device API · viewer.cpp Terrain viewer · terrain.cpp Terrain data
Components 25
Terrain applications
- Terrain generator
apps/terrain_gen/main.cpp - Terrain viewer
apps/terrain_viewer/src/viewer.cpp
Procedural world
- Terrain data
src/world/terrain.cpp - Procedural noise
src/world/noise.cpp - GPU noise
src/world/gpu/gpu_noise.cpp - Terrain LOD
src/world/lod.cpp - World streaming
src/world/streaming.cpp - World export
src/world/export.cpp
Graphics engine
- Window and input
src/platform/window.cpp - Graphics device API
include/orosmo/rhi/device.hpp - OpenGL backend
src/rhi/opengl/gl_device.cpp - Shader compiler
src/rhi/shader_compiler.cpp - Shader library
src/renderer/shader_library.cpp - Pipeline cache
src/renderer/pipeline_cache.cpp - Scene rendering
src/renderer/scene_renderer.cpp - Terrain rendering
src/renderer/terrain_renderer.cpp
User interface
- Widget UI runtime
src/ui/ui.cpp - UI text rendering
src/ui/text_renderer.cpp
CUI compiler
- CUI compiler CLI
tools/cui-rs/src/main.rs - Lexer
tools/cui-rs/src/lexer.rs - Parser
tools/cui-rs/src/parser.rs - Syntax tree
tools/cui-rs/src/ast.rs - C++ generator
tools/cui-rs/src/engine.rs - JSON diagnostics
tools/cui-rs/src/json.rs
Other components
- Engine user
Connections 25
- Engine user → Terrain generator: generates terrain
README.md - Engine user → Terrain viewer: views terrain
README.md - Terrain generator → Terrain data: uses world module
README.md - Terrain viewer → Terrain data: uses world module
README.md - GPU noise → Terrain data: uses terrain API
- World export → Terrain data: exports terrain
- Terrain viewer → Window and input: opens window
- Terrain viewer → Terrain rendering: renders terrain
- Terrain rendering → Scene rendering: draws scene
- Scene rendering → Graphics device API: submits graphics
- OpenGL backend → Graphics device API: implements API
- Shader compiler → Graphics device API: compiles shaders
- Shader library → Graphics device API: creates shader programs
- Shader library → Shader compiler: uses compiler
- Pipeline cache → Graphics device API: creates pipelines
src/renderer/pipeline_cache.cpp - Pipeline cache → Shader library: caches program pipelines
- Widget UI runtime → UI text rendering: renders text
- CUI compiler CLI → Lexer: tokenizes input
tools/cui-rs/src/main.rs - CUI compiler CLI → Parser: parses input
tools/cui-rs/src/main.rs - CUI compiler CLI → C++ generator: generates C++
tools/cui-rs/src/main.rs - CUI compiler CLI → JSON diagnostics: formats diagnostics
tools/cui-rs/src/main.rs - Parser → Lexer: consumes tokens
tools/cui-rs/src/parser.rs - Parser → Syntax tree: builds syntax tree
tools/cui-rs/src/parser.rs - C++ generator → Syntax tree: generates from AST
tools/cui-rs/src/engine.rs - CUI compiler CLI → Widget UI runtime: targets UI runtime
tools/cui-rs/src/main.rs