NAME
DtGroupGetTextureVertices - Get a list of texture vertices
for the given shape.
SYNOPSIS
#include <Dt.h>
int DtGroupGetTextureVertices( int shapeID, int groupID, int *count, DtVec2f **vertices )
DESCRIPTION
DtGroupGetTextureVertices() returns a texture vertex list
for the group indicated by the given shapeID and groupID.
The number of vertices is returned in count. A pointer to a
list of the texture vertices is placed in the variable
pointed to by vertices. The array returned by
DtGroupGetTextureVertices() is not an internal array, and
must be freed by the calling function. It may be modified,
but will not change data stored in the model. C programmers
can access the components of the texture vertex array as
though it were a simple structure as follows:
typedef struct DtVec2f { float vec[2];};
DtVec2f *tVerts;
DtGroupGetTextureVertices( groupID, DtVec2f
&tVerts );
/* The first texture vertex */
u = tVerts[0].vec[0];
v = tVerts[0].vec[1];
DIAGNOSTICS
DtGroupGetTextureVertices() returns one on success and zero
on failure.
FILES
Link with -lDtOMio