Collaboration diagram for MyPolygon:
Public Member Functions
|MyPolygon (MyPoint *inVtx, TexAnchor *inAncs, Texture *_tex)|
|void||init (MyPoint *inVtx, TexAnchor *inAncs, Texture *_tex)|
|void||init (TexAnchor *inAncs, Texture *_tex)|
|calculate the normal of this polygon which is the vector pependicular to it. |
|MyPoint *||vtx |
|A vector list of the polygons points in their order. |
|The normal of polygon. |
|Texture anchors by the order of 0,0 - 1,0 - 1,1 - 0,1. |
Static Public Attributes
|keep bookmarking of creation and deletion for debug |
objects of this class aren't really used in the normal rendering of solutions. They are only used in the creation of the pieces display lists. Actual rendering is performed with these display lists. instances of this class are usually managed with in a Pool of objects
calculate the normal of this polygon which is the vector pependicular to it.
this is done with some math using the polygon's vertices. if none of the vertices for a polygon that is not a line an asserion is asserted. That assertion means there is a bug somewhere.
keep bookmarking of creation and deletion for debug