2014-03-10 14:04:58 +08:00
--------------------------------
-- @module ParticleBatchNode
2014-03-26 14:03:04 +08:00
-- @extend Node,TextureProtocol
2014-06-25 17:36:50 +08:00
-- @parent_module cc
2014-03-18 15:55:30 +08:00
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] setTexture
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Texture2D texture
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-23 16:29:35 +08:00
-- Disables a particle by inserting a 0'd quad into the texture atlas.<br>
-- param particleIndex The index of the particle.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] disableParticle
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #int particleIndex
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] getTexture
-- @param self
-- @return Texture2D#Texture2D ret (return value: cc.Texture2D)
--------------------------------
2015-03-23 16:29:35 +08:00
-- Sets the texture atlas used for drawing the quads.<br>
-- param atlas The texture atlas used for drawing the quads.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] setTextureAtlas
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.TextureAtlas atlas
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-10 14:04:58 +08:00
2015-01-14 16:26:14 +08:00
--------------------------------
-- code<br>
-- When this function bound into js or lua,the parameter will be changed<br>
-- In js: var setBlendFunc(var src, var dst)<br>
-- endcode<br>
-- lua NA
-- @function [parent=#ParticleBatchNode] setBlendFunc
-- @param self
-- @param #cc.BlendFunc blendFunc
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2015-01-14 16:26:14 +08:00
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
--
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] removeAllChildrenWithCleanup
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #bool doCleanup
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-23 16:29:35 +08:00
-- Gets the texture atlas used for drawing the quads.<br>
-- return The texture atlas used for drawing the quads.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] getTextureAtlas
-- @param self
-- @return TextureAtlas#TextureAtlas ret (return value: cc.TextureAtlas)
2015-01-14 16:26:14 +08:00
--------------------------------
-- js NA<br>
-- lua NA
-- @function [parent=#ParticleBatchNode] getBlendFunc
-- @param self
-- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-23 16:29:35 +08:00
-- Inserts a child into the ParticleBatchNode.<br>
-- param system A given particle system.<br>
-- param index The insert index.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] insertChild
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.ParticleSystem system
-- @param #int index
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-23 16:29:35 +08:00
-- Remove a child of the ParticleBatchNode.<br>
-- param index The index of the child.<br>
-- param doCleanup True if all actions and callbacks on this node should be removed, false otherwise.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] removeChildAtIndex
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #int index
-- @param #bool doCleanup
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-23 16:29:35 +08:00
-- Create the particle system with the name of a file on disk (for a list of supported formats look at the Texture2D class), a capacity of particles.<br>
-- param fileImage A given file name.<br>
-- param capacity A capacity of particles.<br>
-- return An autoreleased ParticleBatchNode object.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] create
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #string fileImage
-- @param #int capacity
2014-03-10 14:04:58 +08:00
-- @return ParticleBatchNode#ParticleBatchNode ret (return value: cc.ParticleBatchNode)
--------------------------------
2015-03-23 16:29:35 +08:00
-- Create the particle system with Texture2D, a capacity of particles, which particle system to use.<br>
-- param tex A given texture.<br>
-- param capacity A capacity of particles.<br>
2015-03-24 11:25:31 +08:00
-- return An autoreleased ParticleBatchNode object.<br>
-- js NA
2014-03-10 14:04:58 +08:00
-- @function [parent=#ParticleBatchNode] createWithTexture
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Texture2D tex
-- @param #int capacity
2014-03-10 14:04:58 +08:00
-- @return ParticleBatchNode#ParticleBatchNode ret (return value: cc.ParticleBatchNode)
2014-03-18 15:55:30 +08:00
--------------------------------
2014-07-17 10:28:34 +08:00
-- @overload self, cc.Node, int, string
-- @overload self, cc.Node, int, int
2014-06-25 14:17:41 +08:00
-- @function [parent=#ParticleBatchNode] addChild
2014-03-18 15:55:30 +08:00
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Node child
-- @param #int zOrder
-- @param #int tag
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-06-25 14:17:41 +08:00
2014-03-18 15:55:30 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
--
2014-03-18 15:55:30 +08:00
-- @function [parent=#ParticleBatchNode] draw
-- @param self
-- @param #cc.Renderer renderer
2014-09-02 13:45:07 +08:00
-- @param #mat4_table transform
-- @param #unsigned int flags
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-18 15:55:30 +08:00
2014-05-23 11:12:39 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
--
2014-05-23 11:12:39 +08:00
-- @function [parent=#ParticleBatchNode] visit
-- @param self
-- @param #cc.Renderer renderer
2014-09-02 13:45:07 +08:00
-- @param #mat4_table parentTransform
-- @param #unsigned int parentFlags
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-05-23 11:12:39 +08:00
2014-03-18 15:55:30 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
--
2014-03-18 15:55:30 +08:00
-- @function [parent=#ParticleBatchNode] reorderChild
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Node child
-- @param #int zOrder
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-18 15:55:30 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
--
2014-03-18 15:55:30 +08:00
-- @function [parent=#ParticleBatchNode] removeChild
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Node child
-- @param #bool cleanup
2015-01-21 17:33:26 +08:00
-- @return ParticleBatchNode#ParticleBatchNode self (return value: cc.ParticleBatchNode)
2014-03-18 15:55:30 +08:00
2014-03-10 14:04:58 +08:00
return nil