diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-22 21:05:36 +0800 |
commit | 52097b6ee7cc8f5a770eb851902560b5b8592218 (patch) | |
tree | 6dcbb53ac0104912e950747a37aac6b25039e862 /meta/3rd/Cocos4.0/cc.PolygonInfo.lua | |
parent | 6839cd530c53387df4d5db61f0cb2e5ed1a87298 (diff) | |
download | lua-language-server-52097b6ee7cc8f5a770eb851902560b5b8592218.zip |
add meta/3rd with acknowledgement
Diffstat (limited to 'meta/3rd/Cocos4.0/cc.PolygonInfo.lua')
-rw-r--r-- | meta/3rd/Cocos4.0/cc.PolygonInfo.lua | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/cc.PolygonInfo.lua b/meta/3rd/Cocos4.0/cc.PolygonInfo.lua new file mode 100644 index 00000000..2fcd8913 --- /dev/null +++ b/meta/3rd/Cocos4.0/cc.PolygonInfo.lua @@ -0,0 +1,62 @@ + +---@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
\ No newline at end of file |