Ejemplo n.º 1
0
 /// <summary>
 /// <para>cgSetStateCallbacks sets the three callback functions for a state definition.</para>
 /// <para>These functions are later called when the state a particular state assignment based on this state must be set, reset, or validated.</para>
 /// <para>Any of the callback functions may be specified as NULL.</para>
 /// <para>ERROR: CG_INVALID_STATE_HANDLE_ERROR is generated if state is not a valid state.</para>
 /// <para>VERSION: cgSetStateCallbacks was introduced in Cg 1.4.</para>
 /// </summary>
 /// <param name="state">The state handle.</param>
 /// <param name="set">The pointer to the callback function to call for setting the state of state assignments based on state.  This may be a NULL pointer.</param>
 /// <param name="reset">The pointer to the callback function to call for resetting the state of state assignments based on state.  This may be a NULL pointer.</param>
 /// <param name="validate">The pointer to the callback function to call for validating the state of state assignments based on state.  This may be a NULL pointer.</param>
 public static void SetStateCallbacks(CgState state, StateCallbackDelegate set, StateCallbackDelegate reset, StateCallbackDelegate validate)
 {
     cgSetStateCallbacks(state, set, reset, validate);
 }
Ejemplo n.º 2
0
 private static extern void cgSetStateCallbacks(CgState state, StateCallbackDelegate set, StateCallbackDelegate reset, StateCallbackDelegate validate);