axmol/cocos/scripting/lua-bindings/auto/api/PolygonInfo.lua

57 lines
2.0 KiB
Lua

--------------------------------
-- @module PolygonInfo
-- @parent_module cc
--------------------------------
-- get sum of all triangle area size<br>
-- return sum of all triangle area size
-- @function [parent=#PolygonInfo] getArea
-- @param self
-- @return float#float ret (return value: float)
--------------------------------
-- get vertex count<br>
-- return number of vertices
-- @function [parent=#PolygonInfo] getVertCount
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- get triangles count<br>
-- return number of triangles
-- @function [parent=#PolygonInfo] getTrianglesCount
-- @param self
-- @return unsigned int#unsigned int ret (return value: unsigned int)
--------------------------------
-- 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
-- @function [parent=#PolygonInfo] setQuad
-- @param self
-- @param #cc.V3F_C4B_T2F_Quad quad
-- @return PolygonInfo#PolygonInfo self (return value: cc.PolygonInfo)
--------------------------------
-- 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
-- @function [parent=#PolygonInfo] setTriangles
-- @param self
-- @param #cc.TrianglesCommand::Triangles triangles
-- @return PolygonInfo#PolygonInfo self (return value: cc.PolygonInfo)
--------------------------------
-- / @name Creators/ @{<br>
-- Creates an empty Polygon info<br>
-- memberof PolygonInfo<br>
-- return PolygonInfo object
-- @function [parent=#PolygonInfo] PolygonInfo
-- @param self
-- @return PolygonInfo#PolygonInfo self (return value: cc.PolygonInfo)
return nil