$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
TrailRing Struct Reference

Ring buffer of recorded positions for one body. More...

#include <trail_renderer.h>

Data Fields

vec3 points [TRAIL_MAX_POINTS]
 
float timestamps [TRAIL_MAX_POINTS]
 
int head
 
int count
 

Detailed Description

Ring buffer of recorded positions for one body.

Field Documentation

◆ count

int TrailRing::count

Number of valid samples.

◆ head

int TrailRing::head

Write index (newest).

◆ points

vec3 TrailRing::points[TRAIL_MAX_POINTS]

Circular buffer of positions.

◆ timestamps

float TrailRing::timestamps[TRAIL_MAX_POINTS]

Simulation time at each sample.


The documentation for this struct was generated from the following file: