MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                   cgGetStateEnumerantValue(3)



NAME
     cgGetStateEnumerantValue - get state enumerant value by name

SYNOPSIS
       #include 

       int cgGetStateEnumerantValue( CGstate state,
                                     const char * name );


PARAMETERS
     state   The state from which to retrieve the value
             associated with name.

     name    The enumerant name for which to retrieve the
             associated value from state.

RETURN VALUES
     Returns the enumerant value associated with name.

     Returns -1 if an error occurs.

DESCRIPTION
     cgGetStateEnumerantValue retrieves the enumerant value
     associated with a given enumerant name from the specified
     state.

EXAMPLES
     to-be-written

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

     CGINVALIDPARAMETEREROR is generated if state does not
     contain name, if name is NUL, or if name points to an empty
     string.

HISTORY
     cgGetStateEnumerantValue was introduced in Cg 1.5.

SEE ALSO
     cgGetStateEnumerantName, cgAddStateEnumerant, cgIsState












Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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