naev 0.11.5
Trail_spfx Struct Reference

A trail generated by a ship or an ammo. More...

#include <spfx.h>

Data Fields

const TrailSpecspec
 
TrailPointpoint_ringbuf
 
size_t capacity
 
size_t iread
 
size_t iwrite
 
int refcount
 
double dt
 
GLfloat r
 
unsigned int ontop
 

Detailed Description

A trail generated by a ship or an ammo.

Definition at line 64 of file spfx.h.

Field Documentation

◆ capacity

size_t Trail_spfx::capacity

Buffer size, guaranteed to be a power of 2.

Definition at line 67 of file spfx.h.

◆ dt

double Trail_spfx::dt

Timer accumulator (in seconds).

Definition at line 71 of file spfx.h.

◆ iread

size_t Trail_spfx::iread

Start index (NOT reduced modulo capacity).

Definition at line 68 of file spfx.h.

◆ iwrite

size_t Trail_spfx::iwrite

End index (NOT reduced modulo capacity).

Definition at line 69 of file spfx.h.

◆ ontop

unsigned int Trail_spfx::ontop

Boolean to decide if the trail is drawn before or after the ship.

Definition at line 73 of file spfx.h.

◆ point_ringbuf

TrailPoint* Trail_spfx::point_ringbuf

Circular buffer (malloced/freed) of trail points.

Definition at line 66 of file spfx.h.

◆ r

GLfloat Trail_spfx::r

Random variable between 0 and 1 to make each trail unique.

Definition at line 72 of file spfx.h.

◆ refcount

int Trail_spfx::refcount

Number of referrers. If 0, trail dies after its TTL.

Definition at line 70 of file spfx.h.

◆ spec

const TrailSpec* Trail_spfx::spec

Definition at line 65 of file spfx.h.


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