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

Particle3DEmitter is a base class, define interfaces. More...

Inherits Ref.

Inherited by PUEmitter.

Public Member Functions

virtual void updateEmitter (Particle3D *particle, float deltaTime)
 Update emitter(internal method). More...
 
local updateEmitter ( local particle, local deltaTime)
 Update emitter(internal method). More...
 
virtual void emit (int count)
 Emit particles(internal method). More...
 
void setEnabled (bool enabled)
 Set the emitter enable or disable. More...
 
bool isEnabled (void) const
 Get the emitter enabled. 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.
 

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

Particle3DEmitter is a base class, define interfaces.

Different emitters can have their own implementation. Emitter mainly decides how particles are emitted, such as point emission, spherical emission, etc. One particle system must have a emitter.

Member Function Documentation

virtual void updateEmitter ( Particle3D particle,
float  deltaTime 
)
virtual

Update emitter(internal method).

The current particle. The delta time between two frames.

Reimplemented in PUEmitter.

var updateEmitter ( var  particle,
var  deltaTime 
)
virtual

Update emitter(internal method).

The current particle. The delta time between two frames.

Reimplemented in PUEmitter.

local updateEmitter ( local  particle,
local  deltaTime 
)
virtual

Update emitter(internal method).

The current particle. The delta time between two frames.

Reimplemented in PUEmitter.

virtual void emit ( int  count)
virtual

Emit particles(internal method).

The number of emitted particles.

Reimplemented in PUEmitter.

var emit ( var  count)
virtual

Emit particles(internal method).

The number of emitted particles.

Reimplemented in PUEmitter.

local emit ( local  count)
virtual

Emit particles(internal method).

The number of emitted particles.

Reimplemented in PUEmitter.

void setEnabled ( bool  enabled)
inline

Set the emitter enable or disable.

Whether the emitter enabled.

var setEnabled ( var  enabled)
inline

Set the emitter enable or disable.

Whether the emitter enabled.

local setEnabled ( local  enabled)
inline

Set the emitter enable or disable.

Whether the emitter enabled.

bool isEnabled ( void  ) const
inline

Get the emitter enabled.

Whether the emitter enabled.

var isEnabled (   )
inline

Get the emitter enabled.

Whether the emitter enabled.

local isEnabled (   )
inline

Get the emitter enabled.

Whether the emitter enabled.


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