Go to the source code of this file.
|
| struct | Scene |
| | Encapsulates all 3D scene data, geometry, and rendering state. More...
|
| |
◆ aa_mode_to_string()
| const char* aa_mode_to_string |
( |
AAMode |
mode | ) |
|
Returns a string representation of the AA mode.
- Parameters
-
- Returns
- String representation.
◆ scene_cleanup()
| void scene_cleanup |
( |
Scene * |
scene | ) |
|
Cleans up scene resources.
- Parameters
-
| scene | Pointer to the scene structure. |
◆ scene_init()
| int scene_init |
( |
Scene * |
scene | ) |
|
Initializes the scene resources.
- Parameters
-
| scene | Pointer to the scene structure. |
- Returns
- 1 on success, 0 on failure.
◆ scene_nbody_update()
| void scene_nbody_update |
( |
Scene * |
scene, |
|
|
float |
delta_time |
|
) |
| |
Advances the N-body simulation by one frame.
- Parameters
-
| scene | Pointer to the scene. |
| delta_time | Wall-clock time elapsed. |
| cam_pos | Camera world position (for trail billboard). |
◆ scene_render()
| void scene_render |
( |
Scene * |
scene, |
|
|
GPUProfiler * |
profiler, |
|
|
mat4 |
view, |
|
|
mat4 |
proj, |
|
|
vec3 |
camera_pos, |
|
|
mat4 |
previous_view_proj, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
Renders the scene.
- Parameters
-
| scene | Pointer to the scene. |
| view | View matrix. |
| proj | Projection matrix. |
| camera_pos | Camera position. |
| previous_view_proj | Previous frame's ViewProj matrix (for motion blur). |
| width | Viewport width. |
| height | Viewport height. |
◆ scene_toggle_nbody()
| void scene_toggle_nbody |
( |
Scene * |
scene | ) |
|
Toggles N-body simulation mode on/off.
- Parameters
-
| scene | Pointer to the scene. |
◆ scene_update_gpu_buffers()
| void scene_update_gpu_buffers |
( |
Scene * |
scene | ) |
|
Updates GPU buffers for dynamic geometry (e.g. LOD changes).
- Parameters
-
| scene | Pointer to the scene. |