How rajorshidas/ramenshop works
3D Ramen Shop is an interactive OpenGL scene with an optional cooking game. The main loop accepts camera, scene, and game input, updates animation and gameplay, then renders the shop and applies optional visual effects. The graph separates scene content, rendering support, and gameplay. Relationships are limited to calls shown in excerpts, source-index references, or README descriptions; some implementation details were not sampled, so uncertain links are omitted.
Main entry points: scene.cpp Scene Renderer · main.cpp App Loop · game.cpp Cooking Game · shadowmap.cpp Soft Shadows
Components 19
Application
- App Loop
RamenShop/main.cpp - Camera Controls
RamenShop/camera.cpp - Object Editing
RamenShop/objects.cpp
Shop World
- Scene Renderer
RamenShop/scene.cpp - Shop and Outdoors
RamenShop/exterior.cpp
Rendering
- Lighting
RamenShop/lighting.cpp - Phong Shader
RamenShop/shader.cpp - Soft Shadows
RamenShop/shadowmap.cpp - Glass Refraction
RamenShop/refraction.cpp - Ray Scene
RamenShop/rtscene.cpp - Ray Tracer
RamenShop/rtcore.cpp - Ray Composite
RamenShop/rtpass.cpp
Cooking Game
- Cooking Game
RamenShop/game.cpp
Scene Assets
- Furniture
RamenShop/furniture.cpp - Food Models
RamenShop/food.cpp - Decorations
RamenShop/decorations.cpp - Geometry Primitives
RamenShop/shapes.cpp - Procedural Textures
RamenShop/texture.cpp
Other components
- Player
Connections 27
- Player → App Loop: controls
README.md - App Loop → Camera Controls: handles input
RamenShop/main.cpp - App Loop → Scene Renderer: draws scene
RamenShop/main.cpp - App Loop → Lighting: updates lights
RamenShop/main.cpp - App Loop → Soft Shadows: renders shadows
RamenShop/main.cpp - App Loop → Glass Refraction: draws glass
RamenShop/main.cpp - App Loop → Ray Composite: renders rays
RamenShop/main.cpp - App Loop → Cooking Game: updates game
RamenShop/main.cpp - App Loop → Cooking Game: draws HUD
RamenShop/main.cpp - Camera Controls → Scene Renderer: uses scene state
RamenShop/camera.cpp - Scene Renderer → Shop and Outdoors: draws environment
RamenShop/scene.cpp - Scene Renderer → Furniture: draws furnishings
RamenShop/scene.cpp - Scene Renderer → Food Models: draws food
RamenShop/scene.cpp - Scene Renderer → Decorations: draws decor
RamenShop/scene.cpp - Furniture → Object Editing: applies transforms
RamenShop/furniture.cpp - Shop and Outdoors → Geometry Primitives: uses primitives
RamenShop/exterior.cpp - Food Models → Geometry Primitives: uses primitives
RamenShop/food.cpp - Geometry Primitives → Procedural Textures: uses textures
- Scene Renderer → Lighting: sets light scope
RamenShop/scene.cpp - Soft Shadows → Scene Renderer: draws casters
RamenShop/shadowmap.cpp - Soft Shadows → Phong Shader: supplies shadow map
RamenShop/shadowmap.cpp - Glass Refraction → Scene Renderer: captures backdrop
RamenShop/refraction.cpp - Ray Composite → Ray Scene: builds ray scene
RamenShop/rtpass.cpp - Ray Composite → Ray Tracer: traces pixels
RamenShop/rtpass.cpp - Ray Scene → Scene Renderer: rebuilds shop
RamenShop/rtscene.cpp - Cooking Game → Camera Controls: uses player view
RamenShop/game.cpp - Cooking Game → Food Models: uses ramen models
RamenShop/game.cpp