MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Cg Core Runtime API                   cgSetBoolStateAssignment(3)



NAME
     cgSetBoolStateAssignment - set the value of a bool state
     assignment

SYNOPSIS
       #include 

       CGbool cgSetBoolStateAssignment( CGstateassignment sa,
                                        CGbool value );


PARAMETERS
     sa      A handle to a state assignment of type CGBOL.

     value   The value to which sa will be set.

RETURN VALUES
     Returns CGTRUE if it succeeds in setting the state
     assignment.

     Returns CGFALSE otherwise.

DESCRIPTION
     cgSetBoolStateAssignment sets the value of a state
     assignment of bool type.

EXAMPLES
     to-be-written

ERORS
     CGINVALIDSTATEASIGNMENTHANDLEROR is generated if sa
     is not a valid state assignment.

     CGSTATEASIGNMENTYPEMISMATCHEROR is generated if sa
     is not a state assignment of a bool type.

     CGARAYSIZEMISMATCHEROR is generated if sa is an array
     and not a scalar.

HISTORY
     cgSetBoolStateAssignment was introduced in Cg 1.5.

SEE ALSO
     cgGetBoolStateAssignmentValues,
     cgSetBoolArrayStateAssignment,
     cgSetFloatArrayStateAssignment, cgSetFloatStateAssignment,
     cgSetIntArrayStateAssignment, cgSetIntStateAssignment,
     cgSetProgramStateAssignment, cgSetSamplerStateAssignment,
     cgSetStringStateAssignment, cgSetTextureStateAssignment






Cg Toolkit 2.1            Last change:                          1



OpenSolaris man pages main menu

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