naev 0.12.5
Trail_spfx Struct Reference

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

#include <spfx.h>

Collaboration diagram for Trail_spfx:

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 93 of file spfx.h.

Field Documentation

◆ capacity

size_t Trail_spfx::capacity

Buffer size, guaranteed to be a power of 2.

Definition at line 97 of file spfx.h.

◆ dt

double Trail_spfx::dt

Timer accumulator (in seconds).

Definition at line 101 of file spfx.h.

◆ iread

size_t Trail_spfx::iread

Start index (NOT reduced modulo capacity).

Definition at line 98 of file spfx.h.

◆ iwrite

size_t Trail_spfx::iwrite

End index (NOT reduced modulo capacity).

Definition at line 99 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 103 of file spfx.h.

◆ point_ringbuf

TrailPoint* Trail_spfx::point_ringbuf

Circular buffer (malloced/freed) of trail points.

Definition at line 96 of file spfx.h.

◆ r

GLfloat Trail_spfx::r

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

Definition at line 102 of file spfx.h.

◆ refcount

int Trail_spfx::refcount

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

Definition at line 100 of file spfx.h.

◆ spec

const TrailSpec* Trail_spfx::spec

Definition at line 94 of file spfx.h.


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