⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-dff292a
Loading...
Searching...
No Matches
PolygonInfo Class Reference

PolygonInfo is an object holding the required data to display Sprites. More...

#include <AutoPolygon.h>

Public Member Functions

PolygonInfooperator= (const PolygonInfo &other)
 Copy the member of the other PolygonInfo.
void setQuad (V3F_T2F_C4B_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_T2F_C4B_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.

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:
  • AutoPolygon.h