-------------------------------- -- @module AtlasNode -- @extend Node,TextureProtocol -- @parent_module cc -------------------------------- -- updates the Atlas (indexed vertex array).
-- Shall be overridden in subclasses. -- @function [parent=#AtlasNode] updateAtlasValues -- @param self -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- -- @function [parent=#AtlasNode] getTexture -- @param self -- @return Texture2D#Texture2D ret (return value: cc.Texture2D) -------------------------------- -- Set an buffer manager of the texture vertex. -- @function [parent=#AtlasNode] setTextureAtlas -- @param self -- @param #cc.TextureAtlas textureAtlas -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- code
-- When this function bound into js or lua,the parameter will be changed
-- In js: var setBlendFunc(var src, var dst)
-- endcode
-- lua NA -- @function [parent=#AtlasNode] setBlendFunc -- @param self -- @param #cc.BlendFunc blendFunc -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- Return the buffer manager of the texture vertex.
-- return Return A TextureAtlas. -- @function [parent=#AtlasNode] getTextureAtlas -- @param self -- @return TextureAtlas#TextureAtlas ret (return value: cc.TextureAtlas) -------------------------------- -- lua NA -- @function [parent=#AtlasNode] getBlendFunc -- @param self -- @return BlendFunc#BlendFunc ret (return value: cc.BlendFunc) -------------------------------- -- -- @function [parent=#AtlasNode] getQuadsToDraw -- @param self -- @return long#long ret (return value: long) -------------------------------- -- -- @function [parent=#AtlasNode] setTexture -- @param self -- @param #cc.Texture2D texture -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- -- @function [parent=#AtlasNode] setQuadsToDraw -- @param self -- @param #long quadsToDraw -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- creates a AtlasNode with an Atlas file the width and height of each item and the quantity of items to render.
-- param filename The path of Atlas file.
-- param tileWidth The width of the item.
-- param tileHeight The height of the item.
-- param itemsToRender The quantity of items to render. -- @function [parent=#AtlasNode] create -- @param self -- @param #string filename -- @param #int tileWidth -- @param #int tileHeight -- @param #int itemsToRender -- @return AtlasNode#AtlasNode ret (return value: cc.AtlasNode) -------------------------------- -- -- @function [parent=#AtlasNode] draw -- @param self -- @param #cc.Renderer renderer -- @param #mat4_table transform -- @param #unsigned int flags -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- -- @function [parent=#AtlasNode] isOpacityModifyRGB -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#AtlasNode] setColor -- @param self -- @param #color3b_table color -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- -- @function [parent=#AtlasNode] getColor -- @param self -- @return color3b_table#color3b_table ret (return value: color3b_table) -------------------------------- -- -- @function [parent=#AtlasNode] setOpacityModifyRGB -- @param self -- @param #bool isOpacityModifyRGB -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) -------------------------------- -- -- @function [parent=#AtlasNode] setOpacity -- @param self -- @param #unsigned char opacity -- @return AtlasNode#AtlasNode self (return value: cc.AtlasNode) return nil