A trail generated by a ship or an ammo.
More...
#include <spfx.h>
A trail generated by a ship or an ammo.
Definition at line 93 of file spfx.h.
◆ capacity
| size_t Trail_spfx::capacity |
Buffer size, guaranteed to be a power of 2.
Definition at line 97 of file spfx.h.
◆ dt
Timer accumulator (in seconds).
Definition at line 101 of file spfx.h.
◆ 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
Circular buffer (malloced/freed) of trail points.
Definition at line 96 of file spfx.h.
Random variable between 0 and 1 to make each trail unique.
Definition at line 102 of file spfx.h.
◆ refcount
Number of referrers. If 0, trail dies after its TTL.
Definition at line 100 of file spfx.h.
◆ spec
The documentation for this struct was generated from the following file:
- /pbulk/work/games/naev/work/naev-0.12.5/src/spfx.h