summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.PolygonInfo.lua
blob: 9a4cb3b2b3c8c990becd6c1e906389264e5065ef (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
---@meta

---@class cc.PolygonInfo 
local PolygonInfo={ }
cc.PolygonInfo=PolygonInfo




---* 
---@return string
function PolygonInfo:getFilename () end
---* get sum of all triangle area size<br>
---* return sum of all triangle area size
---@return float
function PolygonInfo:getArea () end
---* 
---@return rect_table
function PolygonInfo:getRect () end
---* 
---@param filename string
---@return self
function PolygonInfo:setFilename (filename) end
---* set the data to be a pointer to a number of Quads<br>
---* the member verts will not be released when this PolygonInfo destructs<br>
---* as the verts memory are managed by other objects<br>
---* param quad  a pointer to the V3F_C4B_T2F_Quad quads
---@param quads cc.V3F_C4B_T2F_Quad
---@param numberOfQuads int
---@return self
function PolygonInfo:setQuads (quads,numberOfQuads) end
---* get vertex count<br>
---* return number of vertices
---@return unsigned_int
function PolygonInfo:getVertCount () end
---* get triangles count<br>
---* return number of triangles
---@return unsigned_int
function PolygonInfo:getTrianglesCount () end
---* set the data to be a pointer to a quad<br>
---* the member verts will not be released when this PolygonInfo destructs<br>
---* as the verts memory are managed by other objects<br>
---* param quad  a pointer to the V3F_C4B_T2F_Quad object
---@param quad cc.V3F_C4B_T2F_Quad
---@return self
function PolygonInfo:setQuad (quad) end
---* set the data to be a pointer to a triangles<br>
---* the member verts will not be released when this PolygonInfo destructs<br>
---* as the verts memory are managed by other objects<br>
---* param triangles  a pointer to the TrianglesCommand::Triangles object
---@param triangles cc.TrianglesCommand.Triangles
---@return self
function PolygonInfo:setTriangles (triangles) end
---* 
---@param rect rect_table
---@return self
function PolygonInfo:setRect (rect) end
---* / @name Creators/ @{<br>
---* Creates an empty Polygon info<br>
---* memberof PolygonInfo<br>
---* return PolygonInfo object
---@return self
function PolygonInfo:PolygonInfo () end