NAME
    cgGetProgramProfile, cgSetProgramProfile - get or set a program's
    profile

SYNOPSIS
      #include <Cg/cg.h>

      CGprofile cgGetProgramProfile(CGprogram prog);
      void cgSetProgramProfile(CGprogram prog, CGprofile profile);

PARAMETERS
    prog    Specifies the program.

    profile Specifies the profile to be used when compiling the program.

DESCRIPTION
    cgSetProgramProfile allows the application to specify the profile to be
    used when compiling the given program. When called, the program will be
    unloaded if it is currently loaded, and marked as uncompiled. When the
    program is next compiled (see cgSetAutoCompile), the given profile will
    be used. cgSetProgramProfile can be used to override the profile
    specified in a CgFX compile statement, or to change the profile
    associated with a program created by a call to cgCreateProgram.

    cgGetProgramProfile allows the application to retrieve the profile
    enumerant currently associated with the program.

RETURN VALUES
    cgGetProgramProfile returns the profile enumerant associated with prog.

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

    CG_INVALID_PROFILE_ERROR is generated if profile is not a valid profile
    enumerant.

SEE ALSO
    the cgGetProfile manpage, the cgGetProfileString manpage, the
    cgCreateProgram manpage, and the cgSetAutoCompile manpage

