MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                        cgSetProgramProfile(3)



NAME
     cgSetProgramProfile - set a program's profile

SYNOPSIS
       #include 

       void cgSetProgramProfile( CGprogram program,
                                 CGprofile profile );


PARAMETERS
     program The program.

     profile The profile to be used when compiling the program.

RETURN VALUES
     None.

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.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDPROGRAMHANDLEROR is generated if program is
     not a valid program handle.

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

HISTORY
     cgSetProgramProfile was introduced in Cg 1.4.

SEE ALSO
     cgGetProgramProfile, cgGetProfile, cgGetProfileString,
     cgCreateProgram, cgSetAutoCompile










Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™