Axmol Engine 2.4.0-258ceca
|
PolygonInfo is an object holding the required data to display Sprites. More...
#include <AutoPolygon.h>
Public Member Functions | |
PolygonInfo & | operator= (const PolygonInfo &other) |
Copy the member of the other PolygonInfo. | |
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 | |
void | setQuads (V3F_C4B_T2F_Quad *quads, int numberOfQuads) |
set the data to be a pointer to a number of Quads the member verts will not be released when this PolygonInfo destructs as the verts memory are managed by other objects | |
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 | |
unsigned int | getVertCount () const |
get vertex count | |
unsigned int | getTrianglesCount () const |
get triangles count | |
float | getArea () const |
get sum of all triangle area size | |
Creators | |
PolygonInfo () | |
Creates an empty Polygon info. | |
PolygonInfo (const PolygonInfo &other) | |
Create an polygoninfo from the data of another Polygoninfo. | |
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