Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 2 - DrawSprocket / DrawSprocket Reference
Application-Defined Functions /


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
The MyCallbackFunction takes, in the inContext parameter, a reference to a context and, in the inRefCon parameter, a reference constant to be handed back to the game by DrawSprocket. The function should return false if your tasks or checks are complete. If it returns true, the function is still performing necessary tasks.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996