Draw triangles.
Method of:
TS3DTK_FUNCTION_LISTSyntax:
S3DTK_TriangleSet: function( pFuncStruct: Pointer; pVertexSet: PULONG; NumVertexes: ULONG; SetType: ULONG): ULONG; cdecl;
Parameters:
Returns:
S3DTK_OK if successful, S3DTK_ERR otherwise.
Description:
This can be used to draw triangles in the form of a list of N/3 separate triangles, a triangle strip made out of N-2 triangles where after the first triangle the rest are defined by the shared edge following a zig-zag pattern or triangle fan made out of N-2 triangles where the first vertex is shared by all triangles and the other vertices specify the non-shared edges.
Notice that vertex data is specified as an array of pointers, which allows reuse of shared vertices by having the same vertex pointed to by different pointers.
Unit: S3DTK
See Also:
S3DTK_TriangleSetEx (in TS3DTK_FUNCTION_LIST)