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
var render ( var renderer, var transform, var particleSystem)
local render ( local renderer, local transform, local particleSystem)
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
local getNumberOfSegments ()
void setNumberOfSegments (size_t numberOfSegments)
bool isJump (void) const
void setJump (bool jump)
PUBillboardChain::TexCoordDirection getTexCoordDirection (void) const
local getTexCoordDirection ()
void setTexCoordDirection (PUBillboardChain::TexCoordDirection texCoordDirection)
void destroyAll (void)
 Destroys the BillboarChain. More...
 
virtual PUBeamRender * clone () override
virtual void copyAttributesTo (PURender *render) override
local copyAttributesTo ( local render)
virtual ~PUBeamRender ()
- Public Member Functions inherited from PURender
const std::string & getRenderType (void) const
local getRenderType ()
void setRenderType (const std::string &observerType)
- Public Member Functions inherited from Particle3DRender
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...
 
Ref * autorelease ()
 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 PUBeamRender * create (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
var DEFAULT_USE_VERTEX_COLOURS
local DEFAULT_USE_VERTEX_COLOURS
static const size_t DEFAULT_MAX_ELEMENTS
var DEFAULT_MAX_ELEMENTS
local 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...
 
local _referenceCount
 count of references More...
 

Additional Inherited Members

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

Constructor & Destructor Documentation

virtual ~PUBeamRender ( )
virtual
var ~PUBeamRender ( )
virtual
local ~PUBeamRender ( )
virtual

Member Function Documentation

virtual PUBeamRender* clone ( )
overridevirtual

Implements PURender.

var clone ( )
overridevirtual

Implements PURender.

local clone ( )
overridevirtual

Implements PURender.

virtual void copyAttributesTo ( PURender *  render)
overridevirtual

Reimplemented from PURender.

var copyAttributesTo ( var  render)
overridevirtual

Reimplemented from PURender.

local copyAttributesTo ( local  render)
overridevirtual

Reimplemented from PURender.

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

Destroys the BillboarChain.

var destroyAll (   )

Destroys the BillboarChain.

local destroyAll (   )

Destroys the BillboarChain.

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

Getters and Setters.

var isUseVertexColours (   )

Getters and Setters.

local isUseVertexColours (   )

Getters and Setters.

virtual void particleEmitted ( PUParticleSystem3D *  particleSystem,
PUParticle3D *  particle 
)
overridevirtual

Implements PUListener.

var particleEmitted ( var  particleSystem,
var  particle 
)
overridevirtual

Implements PUListener.

local particleEmitted ( local  particleSystem,
local  particle 
)
overridevirtual

Implements PUListener.

virtual void particleExpired ( PUParticleSystem3D *  particleSystem,
PUParticle3D *  particle 
)
overridevirtual

Implements PUListener.

var particleExpired ( var  particleSystem,
var  particle 
)
overridevirtual

Implements PUListener.

local particleExpired ( local  particleSystem,
local  particle 
)
overridevirtual

Implements PUListener.

virtual void prepare ( )
overridevirtual

Reimplemented from PURender.

var prepare ( )
overridevirtual

Reimplemented from PURender.

local prepare ( )
overridevirtual

Reimplemented from PURender.

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

Implements Particle3DRender.

var render ( var  renderer,
var  transform,
var  particleSystem 
)
overridevirtual

Implements Particle3DRender.

local render ( local  renderer,
local  transform,
local  particleSystem 
)
overridevirtual

Implements Particle3DRender.

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

Reimplemented from PURender.

var unPrepare ( )
overridevirtual

Reimplemented from PURender.

local unPrepare ( )
overridevirtual

Reimplemented from PURender.

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

Reimplemented from PURender.

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

Reimplemented from PURender.

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

Reimplemented from PURender.

Member Data Documentation

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

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