summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/cc.AtlasNode.lua
blob: b79d5b84d4d18b13231c91361f521ccb641b04c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97

---@class cc.AtlasNode :cc.Node@all parent class: Node,TextureProtocol
local AtlasNode={ }
cc.AtlasNode=AtlasNode




---* lua NA
---@return cc.BlendFunc
function AtlasNode:getBlendFunc () end
---*  Initializes an AtlasNode  with an Atlas file the width and height of each item and the quantity of items to render
---@param tile string
---@param tileWidth int
---@param tileHeight int
---@param itemsToRender int
---@return boolean
function AtlasNode:initWithTileFile (tile,tileWidth,tileHeight,itemsToRender) end
---* 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
---@param blendFunc cc.BlendFunc
---@return self
function AtlasNode:setBlendFunc (blendFunc) end
---*  Set an buffer manager of the texture vertex. 
---@param textureAtlas cc.TextureAtlas
---@return self
function AtlasNode:setTextureAtlas (textureAtlas) end
---* 
---@return cc.Texture2D
function AtlasNode:getTexture () end
---*  Return the buffer manager of the texture vertex. <br>
---* return Return A TextureAtlas.
---@return cc.TextureAtlas
function AtlasNode:getTextureAtlas () end
---*  updates the Atlas (indexed vertex array).<br>
---* Shall be overridden in subclasses.
---@return self
function AtlasNode:updateAtlasValues () end
---* 
---@param texture cc.Texture2D
---@return self
function AtlasNode:setTexture (texture) end
---*  Initializes an AtlasNode  with a texture the width and height of each item measured in points and the quantity of items to render
---@param texture cc.Texture2D
---@param tileWidth int
---@param tileHeight int
---@param itemsToRender int
---@return boolean
function AtlasNode:initWithTexture (texture,tileWidth,tileHeight,itemsToRender) end
---* 
---@return unsigned_int
function AtlasNode:getQuadsToDraw () end
---* 
---@param quadsToDraw int
---@return self
function AtlasNode:setQuadsToDraw (quadsToDraw) end
---*  creates a AtlasNode  with an Atlas file the width and height of each item and the quantity of items to render.<br>
---* param filename The path of Atlas file.<br>
---* param tileWidth The width of the item.<br>
---* param tileHeight The height of the item.<br>
---* param itemsToRender The quantity of items to render.
---@param filename string
---@param tileWidth int
---@param tileHeight int
---@param itemsToRender int
---@return self
function AtlasNode:create (filename,tileWidth,tileHeight,itemsToRender) end
---* 
---@param renderer cc.Renderer
---@param transform mat4_table
---@param flags unsigned_int
---@return self
function AtlasNode:draw (renderer,transform,flags) end
---* 
---@return boolean
function AtlasNode:isOpacityModifyRGB () end
---* 
---@param color color3b_table
---@return self
function AtlasNode:setColor (color) end
---* 
---@return color3b_table
function AtlasNode:getColor () end
---* 
---@param isOpacityModifyRGB boolean
---@return self
function AtlasNode:setOpacityModifyRGB (isOpacityModifyRGB) end
---* 
---@param opacity unsigned_char
---@return self
function AtlasNode:setOpacity (opacity) end
---* 
---@return self
function AtlasNode:AtlasNode () end