MyCallbackFunction
You can use the MyCallbackFunction function to perform any necessary tasks in preparation for swapping display buffers or piggybacking VBL tasks to a context.
Boolean MyCallbackFunction (DSpContextReference inContext, void *inRefCon);
inContext
- A reference to a context.
inRefCon
- A reference constant to be handed back to the game by the DrawSprocket function that calls
MyCallbackFunction
.- function result
- Returns
true
if your game has handled the event,false
if not.DESCRIPTION
TheMyCallbackFunction
takes, in theinContext
parameter, a reference to a context and, in theinRefCon
parameter, a reference constant to be handed back to the game by DrawSprocket. The function should returnfalse
if your tasks or checks are complete. If it returnstrue
, the function is still performing necessary tasks.