NAME

cxGeoTextureCoordinate2Define - define 2D texture coordinates

C SPECIFICATION

#include <cx/Geometry.h>

void cxGeoTextureCoordinate2Define( int n, float *point)

FORTRAN SPECIFICATION

subroutine cxGeoTextureCoordinate2Define(n,point)
real point(2,n)

PARAMETERS

n
Number of points.
point
An array of 2D coordinates which defines the mapping of textures for vertex-based shapes.

DESCRIPTION

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.

SEE ALSO

cxGeoTextureAdd(3E)
Last modified: Mon Nov 18 13:49:25 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996