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

Particle3DModelRender inherit from Particle3DRender, implement model rendering. More...

Inherits Particle3DRender.

Public Member Functions

virtual void render (Renderer *renderer, const Mat4 &transform, ParticleSystem3D *particleSystem) override
 Overwrite function.
 
local render ( local renderer, local transform, local particleSystem)
 Overwrite function.
 
- 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 Particle3DModelRendercreate (const std::string &modelFile, const std::string &texFile="")
 Create a new model renderer. More...
 
local create ( local modelFile)
 Create a new model renderer. More...
 

Additional Inherited Members

- 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

Particle3DModelRender inherit from Particle3DRender, implement model rendering.

Member Function Documentation

static Particle3DModelRender*
create
( const std::string &  modelFile,
const std::string &  texFile = "" 
)
static

Create a new model renderer.

The model of particles. The texture of particles.

var create ( var  modelFile,
var  texFile = "" 
)
static

Create a new model renderer.

The model of particles. The texture of particles.

local create ( local  modelFile,
local  texFile = "" 
)
static

Create a new model renderer.

The model of particles. The texture of particles.


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