18 #include "precompiled.h"
44 boost::unordered_map<VfsPath, CParticleEmitterTypePtr>::iterator it =
m_EmitterTypes.find(path);
73 for (
size_t i = 0; i < emitter.
m_Particles.size(); ++i)
85 PROFILE(
"submit unattached particles");
93 collector.
Submit(it->get());
#define UNUSED(param)
mark a function parameter as unused and avoid the corresponding compiler warning. ...
Particle emitter type - stores the common state data for all emitters of that type, and uses that data to update the emitter states.
shared_ptr< CParticleEmitterType > CParticleEmitterTypePtr
std::vector< SParticle > m_Particles
shared_ptr< CParticleEmitter > CParticleEmitterPtr
This interface accepts renderable objects.
void UnregisterFileReloadFunc(FileReloadFunc func, void *obj)
delete a callback function registered with RegisterFileReloadFunc (removes any with the same func and...
Status ReloadChangedFile(const VfsPath &path)
void RegisterFileReloadFunc(FileReloadFunc func, void *obj)
register a callback function to be called by ReloadChangedFiles
bool operator()(const CParticleEmitterPtr &emitterPtr)
void AddUnattachedEmitter(const CParticleEmitterPtr &emitter)
Tell the manager to handle rendering of an emitter that is no longer attached to a unit...
i64 Status
Error handling system.
void Interpolate(const float simFrameLength)
void ClearUnattachedEmitters()
Delete unattached emitters if we don't wish to see them anymore (like in actor viewer) ...
boost::unordered_map< VfsPath, CParticleEmitterTypePtr > m_EmitterTypes
CParticleEmitterTypePtr LoadEmitterType(const VfsPath &path)
static Status ReloadChangedFileCB(void *param, const VfsPath &path)
virtual void Submit(CPatch *patch)=0
Submit a terrain patch that is part of the scene.
std::list< CParticleEmitterPtr > m_UnattachedEmitters
Simulation state for a single particle.
void RenderSubmit(SceneCollector &collector, const CFrustum &frustum)