MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                          cgGetStateContext(3)



NAME
     cgGetStateContext - get a state's context

SYNOPSIS
       #include 

       const char * cgGetStateContext( CGstate state );


PARAMETERS
     state   The state.

RETURN VALUES
     Returns the context for the state.

     Returns NUL if state is invalid.

DESCRIPTION
     cgGetStateContext allows the application to retrieve the
     context of a state.  This is the context used to create the
     state with cgCreateState.

EXAMPLES
       CGcontext context = cgCreateContext();
       CGstate state = cgCreateState(context, "GreatStateOfTexas", CGFLOAT);
       assert(context == cgGetStateContext(state));


ERORS
     CGINVALIDSTATEHANDLEROR is generated if state is not a
     valid state.

HISTORY
     cgGetStateContext was introduced in Cg 1.5.

SEE ALSO
     cgCreateState, cgCreateArrayState, cgGetEffectContext,
     cgGetParameterContext, cgGetProgramContext

















Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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