NAME

cgGetProgramOptions - get strings from a program object

SYNOPSIS

  #include <Cg/cg.h>

  char const * const * cgGetProgramOptions( CGprogram program );

PARAMETERS

program

The Cg program to query.

RETURN VALUES

to-be-written

DESCRIPTION

cgGetProgramOptions allows the application to retrieve the set of options used to compile the program.

The options are returned in an array of ASCII-encoded NULL-terminated character strings. Each string contains a single option. The last element of the string array is guaranteed to be NULL.

NULL is returned if no options exist, or if an error occurs.

EXAMPLES

to-be-written

ERRORS

CG_INVALID_PROGRAM_HANDLE_ERROR is generated if program does not refer to a valid program.

HISTORY

cgGetProgramOptions was introduced in Cg 1.4.

SEE ALSO

cgGetProgramString