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