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

#include <CCPUBeamRender.h>

Inheritance diagram for PUBeamRender:
PURender PUListener Particle3DRender Ref

Public Member Functions

virtual void prepare () override
virtual void unPrepare () override
virtual void updateRender (PUParticle3D *particle, float deltaTime, bool firstParticle) override
virtual void render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem) override
virtual void particleEmitted (PUParticleSystem3D *particleSystem, PUParticle3D *particle) override
virtual void particleExpired (PUParticleSystem3D *particleSystem, PUParticle3D *particle) override
bool isUseVertexColours (void) const
 Getters and Setters. More...
 
void setUseVertexColours (bool useVertexColours)
size_t getMaxChainElements (void) const
void setMaxChainElements (size_t maxChainElements)
float getUpdateInterval (void) const
void setUpdateInterval (float updateInterval)
float getDeviation (void) const
void setDeviation (float deviation)
size_t getNumberOfSegments (void) const
void setNumberOfSegments (size_t numberOfSegments)
bool isJump (void) const
void setJump (bool jump)
PUBillboardChain::TexCoordDirection getTexCoordDirection (void) const
void setTexCoordDirection (PUBillboardChain::TexCoordDirection texCoordDirection)
void destroyAll (void)
 Destroys the BillboarChain. More...
 
virtual PUBeamRenderclone () override
virtual void copyAttributesTo (PURender *render) override
virtual ~PUBeamRender ()
- Public Member Functions inherited from PURender
const std::string & getRenderType (void) const
void setRenderType (const std::string &observerType)
- Public Member Functions inherited from Particle3DRender
virtual void 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...
 
void setVisible (bool isVisible)
bool isVisible () const
virtual void setDepthTest (bool 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 Member Functions inherited from PUListener
 PUListener ()
virtual ~PUListener ()

Static Public Member Functions

static PUBeamRendercreate (const std::string &texFile="")

Public Attributes

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

Static Public Attributes

static const bool DEFAULT_USE_VERTEX_COLOURS
static const size_t DEFAULT_MAX_ELEMENTS
static const float DEFAULT_UPDATE_INTERVAL
static const float DEFAULT_DEVIATION
static const size_t DEFAULT_NUMBER_OF_SEGMENTS
static const
PUBillboardChain::TexCoordDirection 
DEFAULT_TEXTURE_DIRECTION

Protected Attributes

std::string _texFile
std::string _billboardChainName
PUBillboardChain_billboardChain
std::vector
< PUParticle3DBeamVisualData * > 
_allVisualData
std::vector
< PUParticle3DBeamVisualData * > 
_visualData
size_t _quota
bool _useVertexColours
size_t _maxChainElements
float _updateInterval
float _deviation
size_t _numberOfSegments
bool _jump
PUBillboardChain::TexCoordDirection _texCoordDirection
- Protected Attributes inherited from PURender
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...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

virtual ~PUBeamRender ( )
virtual

Member Function Documentation

virtual PUBeamRender* clone ( )
overridevirtual

Implements PURender.

virtual void copyAttributesTo ( PURender render)
overridevirtual

Reimplemented from PURender.

static PUBeamRender* create ( const std::string &  texFile = "")
static
void destroyAll ( void  )

Destroys the BillboarChain.

float getDeviation ( void  ) const
size_t getMaxChainElements ( void  ) const
size_t getNumberOfSegments ( void  ) const
PUBillboardChain::TexCoordDirection
getTexCoordDirection
( void  ) const
float getUpdateInterval ( void  ) const
bool isJump ( void  ) const
bool isUseVertexColours ( void  ) const

Getters and Setters.

virtual void particleEmitted ( PUParticleSystem3D particleSystem,
PUParticle3D particle 
)
overridevirtual

Implements PUListener.

virtual void particleExpired ( PUParticleSystem3D particleSystem,
PUParticle3D particle 
)
overridevirtual

Implements PUListener.

virtual void prepare ( )
overridevirtual

Reimplemented from PURender.

virtual void render ( Renderer renderer,
const Mat4 transform,
ParticleSystem3D particleSystem 
)
overridevirtual

Implements Particle3DRender.

void setDeviation ( float  deviation)
void setJump ( bool  jump)
void setMaxChainElements ( size_t  maxChainElements)
void setNumberOfSegments ( size_t  numberOfSegments)
void setTexCoordDirection ( PUBillboardChain::TexCoordDirection  texCoordDirection)
void setUpdateInterval ( float  updateInterval)
void setUseVertexColours ( bool  useVertexColours)
virtual void unPrepare ( )
overridevirtual

Reimplemented from PURender.

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

Reimplemented from PURender.

Member Data Documentation

std::vector
<PUParticle3DBeamVisualData*>
_allVisualData
protected
PUBillboardChain* _billboardChain
protected
std::string _billboardChainName
protected
float _deviation
protected
bool _jump
protected
size_t _maxChainElements
protected
size_t _numberOfSegments
protected
size_t _quota
protected
PUBillboardChain::TexCoordDirection
_texCoordDirection
protected
std::string _texFile
protected
float _updateInterval
protected
bool _useVertexColours
protected
std::vector
<PUParticle3DBeamVisualData*>
_visualData
protected
const float DEFAULT_DEVIATION
static
const size_t DEFAULT_MAX_ELEMENTS
static
const size_t
DEFAULT_NUMBER_OF_SEGMENTS
static
const
PUBillboardChain::TexCoordDirection
DEFAULT_TEXTURE_DIRECTION
static
const float DEFAULT_UPDATE_INTERVAL
static
const bool
DEFAULT_USE_VERTEX_COLOURS
static

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