|
resonance 1.0.1
|
Handle on a loaded particle system that can silence it and put back its authored settings. More...
#include <tnlemitter.h>
Public Member Functions | |
| TnlEmitter () | |
| Start with no system. | |
| ~TnlEmitter () | |
| Write the recorded rates and force back to the system. | |
| void | Attach (Rnd::ParticleSys *pSys) |
| Record the rates and force of pSys, show it, silence it, and release its live particles. | |
| void | RotateForce (const float *pMat3Rows) |
| Give the system the recorded force turned by a rotation. | |
| void | Restart () |
| Release the live particles and give back the recorded rates. | |
| void | Stop () |
| Zero both emission rates. | |
| Rnd::ParticleSys * | GetParticleSys () const |
| Report the system. | |
Handle on a loaded particle system that can silence it and put back its authored settings.
The class is not polymorphic and emits no RTTI, and no allocation tag or file path identifies it. The name is inferred from what it records, the emission rate range and the force of one Rnd::ParticleSys. TnlArms, TnlMultFX, and TnlFireFX embed it by value, 0x20 bytes each.
Attach() records the authored rates and force and silences the system. Restart() gives the rates back and Stop() zeroes them again. Destruction writes the recorded rates and force back.
|
inline |
Start with no system.
The body has no out-of-line copy. Every owner inlines it.
| TnlEmitter::~TnlEmitter | ( | ) |
Write the recorded rates and force back to the system.
| void TnlEmitter::Attach | ( | Rnd::ParticleSys * | pSys | ) |
Record the rates and force of pSys, show it, silence it, and release its live particles.
pSys must not be null.
| pSys | The particle system. |
| void TnlEmitter::RotateForce | ( | const float * | pMat3Rows | ) |
Give the system the recorded force turned by a rotation.
| pMat3Rows | The rotation, three rows of four floats. |
| void TnlEmitter::Restart | ( | ) |
Release the live particles and give back the recorded rates.
| void TnlEmitter::Stop | ( | ) |
Zero both emission rates.
|
inline |
Report the system.
The owners read the field directly, and no out-of-line copy exists.