coastline 0.0.4
Loading...
Searching...
No Matches
particlesnapshot.h
Go to the documentation of this file.
1#pragma once
2
3#include "common/effects.h"
4
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
24extern const Particle *g_pParticleListData;
25
33
41
49
58
67#ifdef __cplusplus
68}
69#endif
What the wheels and the exhausts of the vehicles throw up: the spray of the tyres,...
#define PARTICLES
The puffs of the pool.
Definition effects.h:33
void SnapshotParticleState(ParticleSnapshot *snapshot)
Copy the entire particle pool and all list heads from the race into a snapshot.
u16 g_wRenderTireSmokeListHead
The head index of the off-road tyre smoke selected for rendering, or zero for an empty list.
u16 g_wRenderPavedTireSmokeListHead
The head index of the paved-road tyre smoke selected for rendering, or zero for an empty list.
const Particle * g_pParticleListData
The borrowed particle pool used by rendering, valid until the next snapshot selection.
void LoadParticleListHeads(const ParticleSnapshot *snapshot)
Select a snapshot's particle pool and visible list heads without copying the pool.
u16 g_wRenderExhaustParticleListHead
The head index of the exhaust particles selected for rendering, or zero for an empty list.
Captured particle pool and list indices for one race simulation frame.
Definition particlesnapshot.h:6
u16 exhaustListHead
Definition particlesnapshot.h:8
Particle particles[PARTICLES]
Definition particlesnapshot.h:11
u16 tireSmokeListHead
Definition particlesnapshot.h:9
u16 freeListHead
Definition particlesnapshot.h:7
u16 pavedTireSmokeListHead
Definition particlesnapshot.h:10
A puff of smoke or exhaust, in a list of the pool linked by index.
Definition effects.h:21
unsigned short u16
Definition ultratypes.h:19