NAME
cgGLGetParameter - sets the value of scalar and vector parameters
SYNOPSIS
#include <Cg/cgGL.h> /* type is either float or double */ cgGLGetParameter{1234}{fd}(CGparameter param, type *v);PARAMETERS
- param
Specifies the parameter.
- v
A pointer to the buffer to return the values in.
DESCRIPTION
The cgGLGetParameter functions extract the values set by cgGLSetParameter functions. The functions are available in various combinations.
Each function may return either 1, 2, 3, or 4 values.
There are versions of each function that take either float or double values signified by the f or d in the function name.
The cgGLGetParameter functions may only be called with uniform parameters numeric parameters.
RETURN VALUES
The cgGLGetParameter functions do not return any values.
ERRORS
CG_INVALID_PROFILE_ERROR is generated if param's profile is not a supported OpenGL profile.
CG_INVALID_PARAM_HANDLE_ERROR is generated if param is not a valid parameter handle.
CG_INVALID_PARAMETER_ERROR is generated if the parameter fails to get for any other reason.
SEE ALSO