NAME
DtShapeGetTextureVertices - Get a list of texture vertices
for the given shape.
SYNOPSIS
#include <Dt.h>
int DtShapeGetTextureVertices( int shapeID, int *count, DtVec2f **vertices )
DESCRIPTION
DtShapeGetTextureVertices() returns a texture vertex list
for the shape indicated by the given shapeID. The number of
vertices is returned in count. A read-only pointer to a list
of the texture vertices is placed in the variable pointed to
by vertices. This array is an internal buffer. Do not free
or modify the texture vertex array. 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;
DtShapeGetTextureVertices( shapeID, DtVec2f
&tVerts );
/* The first texture vertex */
u = tVerts[0].vec[0];
v = tVerts[0].vec[1];
DIAGNOSTICS
DtShapeGetTextureVertices() returns one on success and zero
on failure.
FILES
Link with -lDtOMio