Name
cgGetStateType - returns the type of a given state
Synopsis
#include <Cg/cg.h>
CGtype cgGetStateType( CGstate state );
Parameters
- state
-
The state from which to retrieve the type.
Return Values
Returns the CGtype of the given state.
Description
cgGetStateType returns the type of a state that was previously defined
via cgCreateState, cgCreateArrayState, cgCreateSamplerState, or
cgCreateArraySamplerState.
Examples
to-be-written
Errors
CG_INVALID_STATE_HANDLE_ERROR is generated if state is not a valid state.
History
cgGetStateType was introduced in Cg 1.4.
See Also
cgCreateState,
cgCreateArrayState,
cgCreateSamplerState,
cgCreateArraySamplerState,
cgGetStateName
|