#include <ShapeMaker.h>
Public Member Functions | |
ShapeData () | |
Constructor. | |
~ShapeData () | |
Destructor. | |
bool | beginPolygon (unsigned long aColor, RENDERER_FILLMODE aFillMode) |
Begins a new polygon. | |
bool | endPolygon () |
Ends the polygon. | |
bool | beginSubPolygon () |
Starts a new sub polygon. | |
bool | endSubPolygon () |
Ends the sub polygon. | |
bool | addVertex (const VECTOR2D &aVertex) |
Adds a vertex to current sub polygon. | |
const PolygonData *const * | getPolygons () const |
Returns a pointer to the polygon data. | |
const unsigned long * | getColors () const |
Returns a pointer to the color data. | |
const RENDERER_FILLMODE * | getFillModes () const |
Returns a pointer to the fill mode data. | |
int | getPolygonCount () const |
Returns the polygon count. | |
Protected Attributes | |
ShapeEntry ** | mShapes |
PolygonData ** | mPolygons |
unsigned long * | mColors |
RENDERER_FILLMODE * | mFillModes |
int | mPolygonCount |
Classes | |
class | ShapeEntry |
Inner class for handling a single polygon in the ShapeData. More... |
|
Constructor.
|
|
Destructor.
|
|
Adds a vertex to current sub polygon.
|
|
Begins a new polygon.
|
|
Starts a new sub polygon.
|
|
Ends the polygon.
|
|
Ends the sub polygon.
|
|
Returns a pointer to the color data.
|
|
Returns a pointer to the fill mode data.
|
|
Returns the polygon count.
|
|
Returns a pointer to the polygon data.
|
|
|
|
|
|
|
|
|
|
|