NAME

cgIsProgram - determine if a CGprogram handle references a Cg program object

SYNOPSIS

  #include <Cg/cg.h>

  CGbool cgIsProgram( CGprogram prog );

PARAMETERS

prog

Specifies the program handle to check.

DESCRIPTION

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

RETURN VALUES

Returns CG_TRUE if prog references a valid program object.

Returns CG_FALSE otherwise.

ERRORS

SEE ALSO

the "cgCreateProgram" document, the "cgDestroyProgram" document, the "cgGetNextProgram" document