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
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- disables a particle by inserting a 0'd quad into the texture atlas
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
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)
--------------------------------
2014-09-02 13:45:07 +08:00
-- Sets 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
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
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Gets 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)
--------------------------------
2014-09-02 13:45:07 +08:00
-- Inserts a child into the ParticleBatchNode
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
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] removeChildAtIndex
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #int index
-- @param #bool doCleanup
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- initializes 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
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)
--------------------------------
2014-09-02 13:45:07 +08:00
-- initializes the particle system with Texture2D, a capacity of particles, which particle system to use
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
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
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
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
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
2014-03-18 15:55:30 +08:00
2014-03-10 14:04:58 +08:00
return nil