Cocos2d-x  v3.12
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
PolygonInfo Class Reference

PolygonInfo is an object holding the required data to display Sprites。 It can be a simple as a triangle, or as complex as a whole 3D mesh. More...

Public Member Functions

PolygonInfooperator= (const PolygonInfo &other)
 Copy the member of the other PolygonInfo another PolygonInfo to be copied.
 
var operator= ( var other)
 Copy the member of the other PolygonInfo another PolygonInfo to be copied.
 
local operator= ( local other)
 Copy the member of the other PolygonInfo another PolygonInfo to be copied.
 
void setQuad (V3F_C4B_T2F_Quad *quad)
 set the data to be a pointer to a quad the member verts will not be released when this PolygonInfo destructs as the verts memory are managed by other objects a pointer to the V3F_C4B_T2F_Quad object
 
void setTriangles (const TrianglesCommand::Triangles &triangles)
 set the data to be a pointer to a triangles the member verts will not be released when this PolygonInfo destructs as the verts memory are managed by other objects More...
 
unsigned int getVertCount () const
 get vertex count number of vertices
 
var getVertCount ()
 get vertex count number of vertices
 
local getVertCount ()
 get vertex count number of vertices
 
unsigned int getTrianglesCount () const
 get triangles count number of triangles
 
local getTrianglesCount ()
 get triangles count number of triangles
 
unsigned int getTriaglesCount () const
local getTriaglesCount ()
float getArea () const
 get sum of all triangle area size sum of all triangle area size
 
Creators
 PolygonInfo ()
 Creates an empty Polygon info PolygonInfo PolygonInfo object.
 
 PolygonInfo (const PolygonInfo &other)
 Create an polygoninfo from the data of another Polygoninfo another PolygonInfo to be copied duplicate of the other PolygonInfo.
 
 PolygonInfo ( var other)
 Create an polygoninfo from the data of another Polygoninfo another PolygonInfo to be copied duplicate of the other PolygonInfo.
 
 PolygonInfo ( local other)
 Create an polygoninfo from the data of another Polygoninfo another PolygonInfo to be copied duplicate of the other PolygonInfo.
 

Detailed Description

PolygonInfo is an object holding the required data to display Sprites。 It can be a simple as a triangle, or as complex as a whole 3D mesh.


The documentation for this class was generated from the following file: