cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PURender Class Referenceabstract

#include <CCPURender.h>

Inheritance diagram for PURender:
Particle3DRender Ref PUBeamRender PUParticle3DEntityRender PUParticle3DModelRender PURibbonTrailRender PUParticle3DBoxRender PUParticle3DQuadRender PUSphereRender

Public Member Functions

virtual void prepare ()
virtual void unPrepare ()
virtual void updateRender (PUParticle3D *particle, float deltaTime, bool firstParticle)
local updateRender ( local particle, local deltaTime, local firstParticle)
const std::string & getRenderType (void) const
local getRenderType ()
void setRenderType (const std::string &observerType)
virtual PURenderclone ()=0
virtual void copyAttributesTo (PURender *render)
local copyAttributesTo ( local render)
- Public Member Functions inherited from Particle3DRender
virtual void render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem)=0
local render ( local renderer, local transform, local particleSystem)
virtual void notifyStart ()
 Perform activities when a Renderer is started. More...
 
var notifyStart ()
 Perform activities when a Renderer is started. More...
 
local notifyStart ()
 Perform activities when a Renderer is started. More...
 
virtual void notifyStop ()
 Perform activities when a Renderer is stopped. More...
 
virtual void notifyRescaled (const Vec3 &scale)
 Notify that the Particle System is rescaled. More...
 
local notifyRescaled ( local scale)
 Notify that the Particle System is rescaled. More...
 
void setVisible (bool isVisible)
bool isVisible () const
virtual void setDepthTest (bool isDepthTest)
local setDepthTest ( local isDepthTest)
virtual void setDepthWrite (bool isDepthWrite)
CC_CONSTRUCTOR_ACCESS _isVisible (true)
CC_CONSTRUCTOR_ACCESS _rendererScale (Vec3::ONE)
CC_CONSTRUCTOR_ACCESS _depthTest (true)
CC_CONSTRUCTOR_ACCESS _depthWrite (false)
virtual ~Particle3DRender ()
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 Destructor. More...
 

Public Attributes

bool autoRotate
- Public Attributes inherited from Particle3DRender
CC_CONSTRUCTOR_ACCESS __pad0__: Particle3DRender() : _particleSystem(nullptr)

Protected Attributes

std::string _renderType
- Protected Attributes inherited from Particle3DRender
ParticleSystem3D_particleSystem
bool _isVisible
Vec3 _rendererScale
bool _depthTest
bool _depthWrite
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 
 Ref ()
 Constructor. More...
 

Member Function Documentation

virtual void copyAttributesTo ( PURender render)
virtual
var copyAttributesTo ( var  render)
virtual
local copyAttributesTo ( local  render)
virtual
const std::string& getRenderType ( void  ) const
inline
var getRenderType (   )
inline
local getRenderType (   )
inline
virtual void prepare ( )
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

var prepare ( )
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

local prepare ( )
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

void setRenderType ( const std::string &  observerType)
inline
var setRenderType ( var  observerType)
inline
local setRenderType ( local  observerType)
inline
virtual void unPrepare ( )
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

var unPrepare ( )
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

local unPrepare ( )
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

virtual void updateRender ( PUParticle3D particle,
float  deltaTime,
bool  firstParticle 
)
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

var updateRender ( var  particle,
var  deltaTime,
var  firstParticle 
)
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

local updateRender ( local  particle,
local  deltaTime,
local  firstParticle 
)
inlinevirtual

Reimplemented in PUBeamRender, and PURibbonTrailRender.

Member Data Documentation

std::string _renderType
protected
var _renderType
protected
local _renderType
protected
bool autoRotate
var autoRotate
local autoRotate

The documentation for this class was generated from the following file: