MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                            cgCreateContext(3)



NAME
     cgCreateContext - create a context

SYNOPSIS
       #include 

       CGcontext cgCreateContext( void );


PARAMETERS
     None.

RETURN VALUES
     Returns a valid CGcontext on success.

     Returns NUL if context creation fails.

DESCRIPTION
     cgCreateContext creates a Cg context object and returns its
     handle.  A Cg context is a container for Cg programs.  All
     Cg programs must be added to a Cg context.

EXAMPLES
     to-be-written

ERORS
     CGMEMORYALOCEROR is generated if a context couldn't be
     created.

HISTORY
     cgCreateContext was introduced in Cg 1.1.

SEE ALSO
     cgDestroyContext, cgCreateProgram, cgCreateEffect,
     cgCreateState




















Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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