NAME

cxGeoTextureCoordinate2Define - define 2D texture coordinates
#include <cx/Geometry.h>

void cxGeoTextureCoordinate2Define( int n, float *point)
subroutine cxGeoTextureCoordinate2Define(n,point)
real point(2,n)
n
Number of points.
point
An array of 2D coordinates which defines the mapping of textures for vertex-based shapes.
This function defines a set of texture coordinates which are used in the mapping of texture onto the current point set, line set, polygon set, triangle mesh set, sphere set, cylinder set, or grid. The current geometry object is the primitive most recently defined, or it may be explicitly set with cxGeoFocus(3E).

Texture coordinates range from 0 to 1 across the shape. The horizontal (S) coordinate is specified first, followed by the vertical (T) coordinate. The texture coordinates are used by the cxGeoTextureAdd(3E) routine, which adds the texture to the current object.

cxGeoTextureAdd(3E)
Last modified: Mon Nov 6 16:33:20 GMT 2000
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996