NAME

cgGLGetParameter2f - gets the values from scalar and vector parameters

SYNOPSIS

  #include <Cg/cgGL.h>

  void cgGLGetParameter2f( CGparameter param,
                           float * v );

PARAMETERS

param

The parameter from which to extract values.

v

A pointer to the buffer into which the values from param will be written.

RETURN VALUES

None.

DESCRIPTION

cgGLGetParameter2f extracts the values set by the cgGLSetParameter functions.

cgGLGetParameter2f may only be called with uniform 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

cgGLGetParameter2f was introduced in Cg 1.1.

SEE ALSO

cgGLSetParameter, cgGLGetParameterArray