NAME

cgGLGetParameter - sets the value of scalar and vector parameters

SYNOPSIS

  #include <Cg/cgGL.h>

  /* type is float or double */

  void cgGLGetParameter{1234}{fd}( CGparameter param,
                                   type * v );

PARAMETERS

param

The parameter.

v

A pointer to the buffer to return the values in.

RETURN VALUES

None.

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.

EXAMPLES

to-be-written

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.

HISTORY

The cgGLGetParameter functions were introduced in Cg 1.1.

SEE ALSO

cgGLSetParameter, cgGLGetParameterArray