cgGetStateSetCallback
Keywords: cgGetStateSetCallback, NVIDIA, NVIDIA Cg Toolkit, Cg Toolkit, Shader, Shader Programming, GPU Shader Programming, GPU Program

> ## Name

> cgGetStateSetCallback - get the state setting callback function for a state

> ## Synopsis

>     #include <Cg/cg.h>

>     CGstatecallback cgGetStateSetCallback( CGstate state );

> ## Parameters

> state
>   The state from which to retrieve the callback.

> ## Return Values

> Returns a pointer to the state setting callback function.

> Returns NULL if state is not a valid state or if it has no callback.

> ## Description

> cgGetStateSetCallback returns the callback function used for setting the state when the given state is encountered in a pass in a technique. See cgSetStateCallbacks for more information.

> ## Examples

> to-be-written

> ## Errors

> CG_INVALID_STATE_HANDLE_ERROR is generated if state is not a valid state.

> ## History

> cgGetStateSetCallback was introduced in Cg 1.4.

> ## See Also

> cgSetStateCallbacks, cgCallStateSetCallback, cgSetPassState