wavelength 1.0.0
Loading...
Searching...
No Matches
rndparticlesys.h File Reference
#include <cstddef>
#include <list>
#include <memory>
#include "math/color.h"
#include "math/plane.h"
#include "math/vector2.h"
#include "math/vector3.h"
#include "os/binstream.h"
#include "os/mem.h"
#include "os/prnstream.h"
#include "rnd/rndanimatable.h"
#include "rnd/rnddrawable.h"
#include "rnd/rndmat.h"
#include "rnd/rndtransformable.h"
Include dependency graph for rndparticlesys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Particle
 One particle of a RndParticleSys pool. More...
class  RndParticleSys
 Emitter that spawns, moves, and fades a population of particles. More...

Functions

PrnStream & operator<< (PrnStream &stream, const Particle &particle)
 Write a particle's position, velocity, colours, size, and life.
PrnStream & operator<< (PrnStream &stream, RndParticleSys::Mode eMode)
 Write the name of a mode.
BinStream & operator>> (BinStream &stream, std::list< Plane > &planes)
 Read a list of planes, each as a point on it followed by its normal.

Function Documentation

◆ operator<<() [1/2]

PrnStream & operator<< ( PrnStream & stream,
const Particle & particle )

Write a particle's position, velocity, colours, size, and life.

Parameters
streamThe stream to write to.
particleThe particle.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0023f7e8
Ghidra address:
PAL: 0x00248318

◆ operator<<() [2/2]

PrnStream & operator<< ( PrnStream & stream,
RndParticleSys::Mode eMode )

Write the name of a mode.

kModeSprite does not write a name.

Parameters
streamThe stream to write to.
eModeThe mode.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x0023f8d8
Ghidra address:
PAL: 0x00248408

◆ operator>>()

BinStream & operator>> ( BinStream & stream,
std::list< Plane > & planes )

Read a list of planes, each as a point on it followed by its normal.

Parameters
streamThe stream to read from.
planesReceives the planes.
Returns
The stream.
Ghidra address:
NTSC-U/C: 0x003904d8
Ghidra address:
PAL: 0x003febe0