Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
Loading...
Searching...
No Matches
scene_nbody.c File Reference
#include "app_settings.h"
#include "billboard_renderer.h"
#include "instanced_rendering.h"
#include "nbody.h"
#include "nbody_types.h"
#include "platform/platform_utils.h"
#include "profiler.h"
#include "scene.h"
#include "scene_internal.h"
#include "scene_simulation.h"
#include "scene_visuals.h"
#include "shockwave.h"
#include "sphere_types.h"
#include "trail_renderer.h"
#include "utils.h"
#include <stdio.h>
Include dependency graph for scene_nbody.c:

Functions

void scene_toggle_nbody (Scene *scene)
 Toggles N-body simulation mode on/off.
 
void scene_nbody_update (Scene *scene, float delta_time)
 Advances the N-body simulation by one frame.
 

Function Documentation

◆ scene_nbody_update()

void scene_nbody_update ( Scene *  scene,
float  delta_time 
)

Advances the N-body simulation by one frame.

Parameters
scenePointer to the scene.
delta_timeWall-clock time elapsed.
cam_posCamera world position (for trail billboard).
Here is the call graph for this function:

◆ scene_toggle_nbody()

void scene_toggle_nbody ( Scene *  scene)

Toggles N-body simulation mode on/off.

Parameters
scenePointer to the scene.
Here is the call graph for this function: