Web hosting solutions - Page 72 OpenGL Super Bible! auxKeyFunc Purpose Associates

Page 72 OpenGL Super Bible! auxKeyFunc Purpose Associates a callback function with a particular keystroke. Include File Syntax void auxKeyFunc(GLint key, void(*function(void)); Description Sets a callback function function that the AUX library calls when the key indicated by key is pressed. The window is also redrawn after the processing of this keystroke. Parameters key GLint: Specifies the key with which to associate the given function. This can be one of the values in Table 3-5. function This callback function is prototyped as void CALLBACK KeyFunc(void); This function is called by the AUX library when the specified key is pressed. Passing NULL as this parameter disables a previous key function setting. Returns None. Example See the KEYMOVE supplementary example from this chapter s subdirectory on the CD. See Also auxMouseFunc Table 3-5 Auxiliary Library Key Definitions. Key Value Description AUX_ESCAPE AUX_SPACE AUX_RETURN AUX_LEFT AUX_RIGHT AUX_UP The Escape key The Spacebar key The Return or Enter key The Left Arrow key The Right Arrow key The Up Arrow key
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision web and email hosting services

Leave a Reply