class HT_Tristrip
See Also HT_Segment_Set, HT_Vertex_Set_Data::set_vertex_parameters, HT_Point_Set, HT_Renderer::draw_3d_tristrip Access Methods
face_colors
Allows access to the polygon face colors of the tristrip.
face_colors_count
Returns the number of face colors in this tristrip.
face_normals_count
Returns the number of face normals in this tristrip.
face_normals
Allows access to the face normals of the tristrip.  
Constructor
HT_Tristrip
Creates a tristrip object.  

HT_Tristrip::face_colors

Purpose

Allows access to the face colors of the tristrip. Synopsis
void set_face_colors (int count, HT_RGB32 const * colors, HT_Boolean copy)
HT_RGB32 const * face_colors (void)
void set_face_colors (void * dummy)
Details This method allows access to the array of colors by face for this tristrip.

The first method sets the face colors in this tristrip according to the colors passed in the parameter colors. If the copy parameter is HK_True, then count colors are copied from the colors array into the tristrip object. If the copy parameter is HK_False, the tristrip object color array refers directly to the array of colors in the colors array.

The second method returns a pointer to the internal array of face colors.

The third method resets the face colors to an empty pointer. dummy has to be a null pointer.
 
 


HT_Tristrip::face_colors_count

Purpose

Returns the number of face colors in this tristrip. Synopsis
int face_colors_count (void)
Details The number of face colors in the tristrip is returned.
HT_Tristrip::face_normal_count

Purpose

Returns the number of face normals in this tristrip. Synopsis
int face_normal_count (void)
Details The number of face normals in the tristrip is returned.
HT_Tristrip::face_normals

Purpose

Allows access to the face normals of the tristrip. Synopsis
void set_face_normals(int count, HT_Vector const * normals,
                           HT_Boolean copy = HK_False) alter
HT_Vector const *
    face_normals (void) const
void set_face_normals (void * dummy)
Details This method allows access to the array of normals by face for this tristrip.

The first method sets the face normals in this tristrip according to the normals passed in the parameter normals. If the copy parameter is HK_True, then count normals are copied from the normals array into the tristrip object. If the copy parameter is HK_False, the tristrip object normal array refers directly to the array of normals in the normals array.

The second method returns a pointer to the internal array of face normals.

The third method resets the face normals to an empty pointer. dummy has to be a null pointer.
 
 


HT_Tristrip::HT_Tristrip

Purpose

Creates a triangle strip object. Synopsis
HT_Tristrip (void)
HT_Tristrip(int count, HT_Point const * points)
HT_Tristrip(int count, HT_Point const * points, HT_Boolean copy)
Details The tristrip is created. To add vertices, colors, normals, or texture parameters, reference the base classes for HT_Tristrip, which are HT_Segment_Set, HT_Vertex_Set, and HT_Point_Set. The second and third method initialize the count and HT_Point pointer. copy, when equal to HK_True, informs the constructor to copy the input data; otherwise, the constructor simply assigns the address of points to the new construct's point list.

The parameter interface now allows for "n" triplets of texture vertex parameter data to be associated with each vertex of  tristrips. In this case, if the tristrip has 100 points and the parameter width is specified as 3, the array of parameters should be 300 long, the first 3 associated with the first vertex, the next 3 with the second, and so forth. For more information see HT_Vertex_Set::set_vertex_parameters.