NAME

cgGetStateAssignmentState - returns the state type of a particular state assignment

SYNOPSIS

  #include <Cg/cg.h>

  CGstate cgGetStateAssignmentState(CGstateassignment sa);

PARAMETERS

sa

Specifies the state assignment handle.

DESCRIPTION

cgGetStateAssignmentState returns the CGstate object that corresponding to a particular state assignment in a pass. This object can then be queried to find out its type, giving the type of the state assignment.

ERRORS

CG_INVALID_STATE_ASSIGNMENT_HANDLE_ERROR is generated if sa is not a valid state assignment handle.

SEE ALSO

cgGetStateType