NAME

cgGLSetOptimalOptions - sets implicit optimization compiler options for a profile

SYNOPSIS

  #include <Cg/cgGL.h>

  void cgGLSetOptimalOptions( CGprofile profile );

PARAMETERS

profile

The profile enumerant.

RETURN VALUES

None.

DESCRIPTION

cgGLSetOptimalOptions sets implicit compiler arguments that are appended to the argument list passed to cgCreateProgram. The arguments are chosen based on the the available compiler arguments, GPU, and driver.

The arguments will be appended to the argument list every time cgCreateProgram is called until the last CGcontext is destroyed.

EXAMPLES

to-be-written

ERRORS

CG_INVALID_PROFILE_ERROR is generated if profile is invalid.

HISTORY

cgGLSetOptimalOptions was introduced in Cg 1.1.

SEE ALSO

cgGLCreateProgram