PURender, the base class of pu renderer, inherit from Particle3DRender. More...
Inherits Particle3DRender.
Inherited by PUBeamRender, PUParticle3DEntityRender, PUParticle3DModelRender, and PURibbonTrailRender.
Public Member Functions | |
| virtual void | prepare () |
| The function is automatically called during initialisation (prepare) activities of a ParticleSystem(internal method). | |
| virtual void | unPrepare () |
| The function is automatically called when a ParticleSystem is expired(internal method). | |
| virtual void | updateRender (PUParticle3D *particle, float deltaTime, bool firstParticle) |
| This function is called when the ParticleSystem update-loop where all particles are traversed(internal method). More... | |
| local | updateRender ( local particle, local deltaTime, local firstParticle) |
| This function is called when the ParticleSystem update-loop where all particles are traversed(internal method). More... | |
| const std::string & | getRenderType (void) const |
| Get render type. More... | |
| local | getRenderType () |
| Get render type. More... | |
| void | setRenderType (const std::string &observerType) |
| Set render type. More... | |
| virtual PURender * | clone ()=0 |
| Clone this renderer. | |
| void | copyAttributesTo (PURender *render) |
| Copy attributes to another renderer(internal method). More... | |
Public Member Functions inherited from Particle3DRender | |
| virtual void | render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem)=0 |
| Render particles(internal method). More... | |
| local | render ( local renderer, local transform, local particleSystem) |
| Render particles(internal method). More... | |
| virtual void | notifyStart () |
| Perform activities when a Renderer is started(internal method). | |
| virtual void | notifyStop () |
| Perform activities when a Renderer is stopped(internal method). | |
| virtual void | notifyRescaled (const Vec3 &scale) |
| Notify that the Particle System is rescaled(internal method). | |
| var | notifyRescaled ( var scale) |
| Notify that the Particle System is rescaled(internal method). | |
| local | notifyRescaled ( local scale) |
| Notify that the Particle System is rescaled(internal method). | |
| void | setVisible (bool isVisible) |
| Set the render visible or invisible. More... | |
| bool | isVisible () const |
| Checks the render visible. More... | |
| void | setDepthTest (bool isDepthTest) |
| Set the depth test enable or disable, default is enabled. More... | |
| void | setDepthWrite (bool isDepthWrite) |
| Set the depth write enable or disable, default is disable. More... | |
| void | setBlendFunc (const BlendFunc &blendFunc) |
| Set the blend function. More... | |
| void | copyAttributesTo (Particle3DRender *render) |
| Copy one renderer's attributes to another's(internal method). More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Public Attributes | |
| bool | autoRotate |
| Means that the objects to render automatically rotate if the node to which the particle system is attached, rotates. | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
PURender, the base class of pu renderer, inherit from Particle3DRender.
Different renderers can have their own implementation.
|
inlinevirtual |
This function is called when the ParticleSystem update-loop where all particles are traversed(internal method).
The current traversed particle. The delta time between two frames. Is first update particle.
|
inlinevirtual |
This function is called when the ParticleSystem update-loop where all particles are traversed(internal method).
The current traversed particle. The delta time between two frames. Is first update particle.
|
inlinevirtual |
This function is called when the ParticleSystem update-loop where all particles are traversed(internal method).
The current traversed particle. The delta time between two frames. Is first update particle.
|
inline |
Get render type.
quad,model,box,sphere,beam, or ribbon trail. The type name.
|
inline |
Get render type.
quad,model,box,sphere,beam, or ribbon trail. The type name.
|
inline |
Get render type.
quad,model,box,sphere,beam, or ribbon trail. The type name.
|
inline |
Set render type.
The type name.
|
inline |
Set render type.
The type name.
|
inline |
Set render type.
The type name.
| void copyAttributesTo | ( | PURender * | render | ) |
Copy attributes to another renderer(internal method).
The renderer.
| var copyAttributesTo | ( | var | render | ) |
Copy attributes to another renderer(internal method).
The renderer.
| local copyAttributesTo | ( | local | render | ) |
Copy attributes to another renderer(internal method).
The renderer.