Cocos2d-x  v3.10
 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 (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...
 
local setTriangles ( local 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...
 
const unsigned int getVertCount () const
 get vertex count number of vertices
 
const unsigned int getTriaglesCount () const
 get triangles count number of triangles
 
const 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: