MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                                cgIsProgram(3)



NAME
     cgIsProgram - determine if a program handle references a
     program object

SYNOPSIS
       #include 

       CGbool cgIsProgram( CGprogram program );


PARAMETERS
     program The program handle to check.

RETURN VALUES
     Returns CGTRUE if program references a valid program
     object.

     Returns CGFALSE otherwise.

DESCRIPTION
     cgIsProgram return CGTRUE if program references a valid
     program object.  Note that this does not imply that the
     program has been successfully compiled.

EXAMPLES
       char *programSource = ...;
       CGcontext context = cgCreateContext();
       CGprogram program = cgCreateProgram( context,
                                            CGSOURCE,
                                            programSource,
                                            CGPROFILEARBVP1,
                                            "myshader",
                                            NUL );
       CGbool isProgram = cgIsProgram( program );


ERORS
     None.

HISTORY
     cgIsProgram was introduced in Cg 1.1.

SEE ALSO
     cgCreateProgram, cgDestroyProgram, cgGetNextProgram











Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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