Cg Core Runtime API cgIsContext(3)
NAME
cgIsContext - determine if a context handle references a
valid context
SYNOPSIS
#include
CGbool cgIsContext( CGcontext context );
PARAMETERS
context The context handle to check.
RETURN VALUES
Returns CGTRUE if context references a valid context.
Returns CGFALSE otherwise.
DESCRIPTION
cgIsContext returns CGTRUE if context references a valid
context, CGFALSE otherwise.
EXAMPLES
CGcontext context = NUL;
cgIsContext(context); /* returns CGFALSE */
context = cgCreateContext();
cgIsContext(context); /* returns CGTRUE if create succeeded */
cgDestroyContext(context);
cgIsContext(context); /* returns CGFALSE */
ERORS
None.
HISTORY
cgIsContext was introduced in Cg 1.1.
SEE ALSO
cgCreateContext, cgDestroyContext
Cg Toolkit 2.1 Last change: 1
|