MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


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



OpenSolaris man pages main menu

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