resonance 1.0.1
Loading...
Searching...
No Matches
tnlemitter.h
Go to the documentation of this file.
1#pragma once
2
3#include "math/vector3.h"
4
5namespace Rnd {
6class ParticleSys;
7} // namespace Rnd
8
20public:
26 TnlEmitter() : mParticleSys(nullptr) {
27 mForce.w = 1.0f;
28 }
29
37
48
56 void RotateForce(const float *pMat3Rows);
57
64 void Restart();
65
72 void Stop();
73
82 return mParticleSys;
83 }
84
85private:
86 Rnd::ParticleSys *mParticleSys;
87 float mEmitRateLow;
88 float mEmitRateHigh;
89 Vector3 mForce;
90};
Emitter that spawns, integrates, and draws a population of particles.
Definition particlesys.h:60
void Restart()
Release the live particles and give back the recorded rates.
void Attach(Rnd::ParticleSys *pSys)
Record the rates and force of pSys, show it, silence it, and release its live particles.
void Stop()
Zero both emission rates.
Rnd::ParticleSys * GetParticleSys() const
Report the system.
Definition tnlemitter.h:81
TnlEmitter()
Start with no system.
Definition tnlemitter.h:26
void RotateForce(const float *pMat3Rows)
Give the system the recorded force turned by a rotation.
~TnlEmitter()
Write the recorded rates and force back to the system.
The rendering engine.
Definition animhelper.h:3
Three-component vector, padded to a PlayStation 2 quadword.
Definition vector3.h:12