MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / addEmitter

Method addEmitter

SPlisHSPlasH/EmitterSystem.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void EmitterSystem::addEmitter(const unsigned int width, const unsigned int height,
97 const Vector3r &pos, const Matrix3r & rotation,
98 const Real velocity,
99 const unsigned int type)
100{
101 m_emitters.push_back(new Emitter(m_model,
102 width, height,
103 pos, rotation,
104 velocity,
105 type));
106}
107
108void EmitterSystem::enableReuseParticles(const Vector3r &boxMin /*= Vector3r(-1, -1, -1)*/, const Vector3r &boxMax /*= Vector3r(1, 1, 1)*/)
109{

Callers 1

createEmittersMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected