coastline 0.0.4
Loading...
Searching...
No Matches
particlesnapshot.h File Reference
#include "common/effects.h"
Include dependency graph for particlesnapshot.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ParticleSnapshot
 Captured particle pool and list indices for one race simulation frame. More...

Typedefs

typedef struct ParticleSnapshot ParticleSnapshot
 Captured particle pool and list indices for one race simulation frame.

Functions

void LoadParticleListHeads (const ParticleSnapshot *snapshot)
 Select a snapshot's particle pool and visible list heads without copying the pool.
void SnapshotParticleState (ParticleSnapshot *snapshot)
 Copy the entire particle pool and all list heads from the race into a snapshot.

Variables

const Particle * g_pParticleListData
 The borrowed particle pool used by rendering, valid until the next snapshot selection.
u16 g_wRenderExhaustParticleListHead
 The head index of the exhaust particles selected for rendering, or zero for an empty list.
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.

Typedef Documentation

◆ ParticleSnapshot

typedef struct ParticleSnapshot ParticleSnapshot

Captured particle pool and list indices for one race simulation frame.

Function Documentation

◆ LoadParticleListHeads()

void LoadParticleListHeads ( const ParticleSnapshot * snapshot)

Select a snapshot's particle pool and visible list heads without copying the pool.

Parameters
snapshotCaptured particles in storage that remains valid while selected for rendering.
Ghidra address:
BRD3D: 0x10013a10
Ghidra address:
BRGlide: 0x10010f80

◆ SnapshotParticleState()

void SnapshotParticleState ( ParticleSnapshot * snapshot)

Copy the entire particle pool and all list heads from the race into a snapshot.

Parameters
snapshotWritable snapshot storage that receives the full particle pool.
Ghidra address:
BRD3D: 0x1003a610
Ghidra address:
BRGlide: 0x10033c90

Variable Documentation

◆ g_pParticleListData

const Particle* g_pParticleListData
extern

The borrowed particle pool used by rendering, valid until the next snapshot selection.

Ghidra address:
BRD3D: 0x1039b71c
Ghidra address:
BRGlide: 0x10396f04

◆ g_wRenderExhaustParticleListHead

u16 g_wRenderExhaustParticleListHead
extern

The head index of the exhaust particles selected for rendering, or zero for an empty list.

Ghidra address:
BRD3D: 0x1039b714
Ghidra address:
BRGlide: 0x10396efc

◆ g_wRenderTireSmokeListHead

u16 g_wRenderTireSmokeListHead
extern

The head index of the off-road tyre smoke selected for rendering, or zero for an empty list.

Ghidra address:
BRD3D: 0x1039b710
Ghidra address:
BRGlide: 0x10396ef8

◆ g_wRenderPavedTireSmokeListHead

u16 g_wRenderPavedTireSmokeListHead
extern

The head index of the paved-road tyre smoke selected for rendering, or zero for an empty list.

Ghidra address:
BRD3D: 0x1039b718
Ghidra address:
BRGlide: 0x10396f00