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
trueif your game has handled the event,falseif not.DESCRIPTION
TheMyCallbackFunctiontakes, in theinContextparameter, a reference to a context and, in theinRefConparameter, a reference constant to be handed back to the game by DrawSprocket. The function should returnfalseif your tasks or checks are complete. If it returnstrue, the function is still performing necessary tasks.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help