coastline 0.0.4
Loading...
Searching...
No Matches
Particle Struct Reference

A puff of smoke or exhaust, in a list of the pool linked by index. More...

#include <effects.h>

Collaboration diagram for Particle:

Public Attributes

Vec3f position
Vec3f velocity
f32 size
u16 next
u8 fade
u8 alpha

Detailed Description

A puff of smoke or exhaust, in a list of the pool linked by index.

Member Data Documentation

◆ position

Vec3f Particle::position

The position of the puff in the world.

◆ velocity

Vec3f Particle::velocity

How far the puff moves a second at its full opacity; it slows as it fades.

◆ size

f32 Particle::size

The size, growing as the puff fades.

◆ next

u16 Particle::next

The index of the next puff of its list in g_aParticlePool, or 0 at its end.

◆ fade

u8 Particle::fade

The share of the opacity remaining, from 0 to 255, falling as the puff grows.

◆ alpha

u8 Particle::alpha

The opacity when the puff began, from 0 to 255; times fade over 256, it gives the opacity drawn.


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