How sriman-dhar/computer-graphics-project-city-life works
This is a GLUT/OpenGL animated city-scene program. Its user-facing flow is a window displaying a city, with mouse input and timer-driven animation; the scene includes buildings, roads, weather, and moving vehicles including a train. The source is a single monolithic file, so the graph groups responsibilities within that file rather than implying separate modules. The README is empty and the source excerpt is partial, so audio-file usage and some callback wiring are not established.
Main entry points: main.cpp Scene display
Components 13
Application runtime
- Window setup
A Reguler City Life 6/A Reguler City Life 6/main.cpp - Scene display
A Reguler City Life 6/A Reguler City Life 6/main.cpp - Mouse handler
A Reguler City Life 6/A Reguler City Life 6/main.cpp
City scene
- City backdrop
A Reguler City Life 6/A Reguler City Life 6/main.cpp - Buildings
A Reguler City Life 6/A Reguler City Life 6/main.cpp - Roads
A Reguler City Life 6/A Reguler City Life 6/main.cpp - Weather and sky
A Reguler City Life 6/A Reguler City Life 6/main.cpp - Vehicles and train
A Reguler City Life 6/A Reguler City Life 6/main.cpp
Animation
- Timer callbacks
A Reguler City Life 6/A Reguler City Life 6/main.cpp - Animation state
A Reguler City Life 6/A Reguler City Life 6/main.cpp
Other components
- User
- GLUT
- OpenGL
Connections 14
- User → GLUT: interacts with
- Window setup → GLUT: initializes window
- Window setup → Scene display: registers display
- Window setup → Mouse handler: registers mouse
- Window setup → Timer callbacks: registers timers
- GLUT → Scene display: invokes display
- GLUT → Mouse handler: dispatches input
- Timer callbacks → Animation state: updates state
- Scene display → City backdrop: draws scene
- Scene display → Buildings: draws buildings
- Scene display → Roads: draws roads
- Scene display → Weather and sky: draws weather
- Scene display → Vehicles and train: draws traffic
- Scene display → OpenGL: issues draw calls