Cocos2d-x  v3.12
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
PUParticle3DQuadRender Class Reference

PUParticle3DQuadRender inherit from PUParticle3DEntityRender,implement pu quad rendering. More...

Inherits PUParticle3DEntityRender.

Public Member Functions

void setType (Type type)
 Set the orientation type of quad. More...
 
Type getType () const
 Get the orientation type of quad. More...
 
void setOrigin (Origin origin)
 Set the center of quad. More...
 
Origin getOrigin () const
 Get the center of quad. More...
 
void setRotateType (RotateType type)
 Set the rotation type of quad. More...
 
RotateType getRotateType () const
 Get the rotation type of quad. More...
 
void setCommonDirection (const Vec3 &dir)
 Set the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON. More...
 
var setCommonDirection ( var dir)
 Set the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON. More...
 
local setCommonDirection ( local dir)
 Set the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON. More...
 
const Vec3getCommonDirection () const
 Get the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON. More...
 
void setCommonUp (const Vec3 &up)
 Set the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON. More...
 
const Vec3getCommonUp () const
 Get the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON. More...
 
unsigned short getTextureCoordsRows () const
 Get frame texture row count. More...
 
var getTextureCoordsRows ()
 Get frame texture row count. More...
 
local getTextureCoordsRows ()
 Get frame texture row count. More...
 
void setTextureCoordsRows (unsigned short textureCoordsRows)
 Set frame texture row count. More...
 
unsigned short getTextureCoordsColumns () const
 Get frame texture column count. More...
 
void setTextureCoordsColumns (unsigned short textureCoordsColumns)
 Set frame texture column count. More...
 
unsigned int getNumTextureCoords ()
 Get frame texture count(row x column). More...
 
var getNumTextureCoords ()
 Get frame texture count(row x column). More...
 
local getNumTextureCoords ()
 Get frame texture count(row x column). More...
 
virtual void render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem) override
 Overwrite function.
 
local render ( local renderer, local transform, local particleSystem)
 Overwrite function.
 
virtual PUParticle3DQuadRenderclone () override
 Clone this renderer.
 
void copyAttributesTo (PUParticle3DQuadRender *render)
 Copy attributes to another quad renderer(internal method). More...
 
var copyAttributesTo ( var render)
 Copy attributes to another quad renderer(internal method). More...
 
local copyAttributesTo ( local render)
 Copy attributes to another quad renderer(internal method). More...
 
- Public Member Functions inherited from PUParticle3DEntityRender
void copyAttributesTo (PUParticle3DEntityRender *render)
 Copy attributes to another entity renderer(internal method). More...
 
- Public Member Functions inherited from PURender
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...
 
void copyAttributesTo (PURender *render)
 Copy attributes to another renderer(internal method). More...
 
- Public Member Functions inherited from Particle3DRender
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...
 
Refautorelease ()
 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.
 

Static Public Member Functions

static PUParticle3DQuadRendercreate (const std::string &texFile="")
 Create a new quad renderer. More...
 
local create ()
 Create a new quad renderer. More...
 

Additional Inherited Members

- Public Attributes inherited from PURender
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...
 

Detailed Description

PUParticle3DQuadRender inherit from PUParticle3DEntityRender,implement pu quad rendering.

Member Function Documentation

static PUParticle3DQuadRender*
create
( const std::string &  texFile = "")
static

Create a new quad renderer.

The texture of particles.

var create ( var  texFile = "")
static

Create a new quad renderer.

The texture of particles.

local create ( local  texFile = "")
static

Create a new quad renderer.

The texture of particles.

void setType ( Type  type)

Set the orientation type of quad.

The orientation type.

var setType ( var  type)

Set the orientation type of quad.

The orientation type.

local setType ( local  type)

Set the orientation type of quad.

The orientation type.

Type getType ( ) const
inline

Get the orientation type of quad.

The orientation type.

var getType ( )
inline

Get the orientation type of quad.

The orientation type.

local getType ( )
inline

Get the orientation type of quad.

The orientation type.

void setOrigin ( Origin  origin)
inline

Set the center of quad.

The center of quad.

var setOrigin ( var  origin)
inline

Set the center of quad.

The center of quad.

local setOrigin ( local  origin)
inline

Set the center of quad.

The center of quad.

Origin getOrigin ( ) const
inline

Get the center of quad.

The center of quad.

var getOrigin ( )
inline

Get the center of quad.

The center of quad.

local getOrigin ( )
inline

Get the center of quad.

The center of quad.

void setRotateType ( RotateType  type)
inline

Set the rotation type of quad.

The orientation type.

var setRotateType ( var  type)
inline

Set the rotation type of quad.

The orientation type.

local setRotateType ( local  type)
inline

Set the rotation type of quad.

The orientation type.

RotateType getRotateType ( ) const
inline

Get the rotation type of quad.

The orientation type.

var getRotateType ( )
inline

Get the rotation type of quad.

The orientation type.

local getRotateType ( )
inline

Get the rotation type of quad.

The orientation type.

void setCommonDirection ( const Vec3 dir)
inline

Set the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The direction.

var setCommonDirection ( var  dir)
inline

Set the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The direction.

local setCommonDirection ( local  dir)
inline

Set the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The direction.

const Vec3& getCommonDirection ( ) const
inline

Get the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The direction.

var getCommonDirection ( )
inline

Get the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The direction.

local getCommonDirection ( )
inline

Get the direction when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The direction.

void setCommonUp ( const Vec3 up)
inline

Set the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The up.

var setCommonUp ( var  up)
inline

Set the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The up.

local setCommonUp ( local  up)
inline

Set the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The up.

const Vec3& getCommonUp ( ) const
inline

Get the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The up.

var getCommonUp ( )
inline

Get the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The up.

local getCommonUp ( )
inline

Get the up when type is ORIENTED_COMMON or PERPENDICULAR_COMMON.

The up.

unsigned short getTextureCoordsRows ( ) const

Get frame texture row count.

The row count.

var getTextureCoordsRows ( )

Get frame texture row count.

The row count.

local getTextureCoordsRows ( )

Get frame texture row count.

The row count.

void setTextureCoordsRows ( unsigned short  textureCoordsRows)

Set frame texture row count.

The row count.

var setTextureCoordsRows ( var  textureCoordsRows)

Set frame texture row count.

The row count.

local setTextureCoordsRows ( local  textureCoordsRows)

Set frame texture row count.

The row count.

unsigned short
getTextureCoordsColumns
( ) const

Get frame texture column count.

The column count.

var getTextureCoordsColumns ( )

Get frame texture column count.

The column count.

local getTextureCoordsColumns ( )

Get frame texture column count.

The column count.

void setTextureCoordsColumns ( unsigned short  textureCoordsColumns)

Set frame texture column count.

The column count.

var setTextureCoordsColumns ( var  textureCoordsColumns)

Set frame texture column count.

The column count.

local setTextureCoordsColumns ( local  textureCoordsColumns)

Set frame texture column count.

The column count.

unsigned int getNumTextureCoords ( )

Get frame texture count(row x column).

The total count.

var getNumTextureCoords ( )

Get frame texture count(row x column).

The total count.

local getNumTextureCoords ( )

Get frame texture count(row x column).

The total count.

void copyAttributesTo ( PUParticle3DQuadRender render)

Copy attributes to another quad renderer(internal method).

The quad renderer.

var copyAttributesTo ( var  render)

Copy attributes to another quad renderer(internal method).

The quad renderer.

local copyAttributesTo ( local  render)

Copy attributes to another quad renderer(internal method).

The quad renderer.


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