Cg OpenGL Runtime API cgGLGetParameterArray4f(3)
NAME
cgGLGetParameterArray4f - get the values from an array
parameter
SYNOPSIS
#include
void cgGLGetParameterArray4f( CGparameter param,
long offset,
long nelements,
const float * v );
PARAMETERS
param The array parameter from which the values will be
retrieved.
offset An offset into the array parameter at which to start
getting elements. A value of 0000 will begin at the
first element of the array.
nelements
The number of elements to get. A value of 0000 will
default to the total number of elements in the array
minus the value of offset.
v Destination buffer into which the values will be
written. The size of v must be 4 **** nelements.
RETURN VALUES
None.
DESCRIPTION
cgGLGetParameterArray4f retrieves the values from a scalar
or vector array parameter.
The function retrieves 4 values per array element.
EXAMPLES
to-be-written
ERORS
CGINVALIDPROFILEROR is generated if param's profile is
not a supported OpenGL profile.
CGARAYPARAMEROR is generated if param is not an array
parameter.
CGOUTOFARAYBOUNDSEROR is generated if offset or
nelements is outside the bounds of param.
Cg Toolkit 2.1 Last change: 1
Cg OpenGL Runtime API cgGLGetParameterArray4f(3)
CGINVALIDPARAMHANDLEROR is generated if param is not a
valid parameter.
HISTORY
cgGLGetParameterArray4f was introduced in Cg 1.1.
SEE ALSO
cgGLGetParameter, cgGLSetParameter, cgGLSetParameterArray
Cg Toolkit 2.1 Last change: 2
|