Public Methods |
| VertexInfo (ColorTess *color_tess=0, TextureTess *texture_tess=0) |
| Default constructor just initializes Vertex to zero. -
Parameters:
-
color_tess
|
optional color tesselation object. |
texture_tess
|
optional texture tesselation object. |
|
| VertexInfo (FT_Vector *ft_v, ColorTess *color_tess=0, TextureTess *texture_tess=0) |
| VertexInfo (double p[2], ColorTess *color_tess=0, TextureTess *texture_tess=0) |
| VertexInfo (double x, double y, ColorTess *color_tess=0, TextureTess *texture_tess=0) |
void | normalize (void) |
| Treat the Vertex like a vector: Normalize its length in the usual way.
|
Public Attributes |
double | v_ [3] |
| Why is this double precision? Because the second argument to the routine gluTessVertex is a pointer to an array of doubles. Otherwise, we could use single precision everywhere.
|
ColorTess* | color_tess_ |
| The user can provide a ColorTess object which computes a color for each tesselated vertex.
|
TextureTess* | texture_tess_ |
| The user can provide a TextureTess object which computes texture coordinates for each tesselated vertex.
|