/* Copyright (c) 2014 Alex Diener This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Alex Diener alex@ludobloom.com */ #ifndef __GLXShellCallbacks_H__ #define __GLXShellCallbacks_H__ #ifdef __cplusplus extern "C" { #endif #include extern bool (* drawCallback)(double referenceTime, double activeDrawDelta) __asm("drawCallback$GLXShell"); extern void (* resizeCallback)(unsigned int newWidth, unsigned int newHeight, double referenceTime) __asm("resizeCallback$GLXShell"); extern void (* keyDownCallback)(unsigned int charCode, unsigned int keyCode, unsigned int modifiers, bool isRepeatt, double referenceTime) __asm("keyDownCallback$GLXShell"); extern void (* keyUpCallback)(unsigned int keyCode, unsigned int modifiers, double referenceTime) __asm("keyUpCallback$GLXShell"); extern void (* keyModifiersChangedCallback)(unsigned int modifiers, unsigned int lastModifiers, double referenceTime) __asm("keyModifiersChangedCallback$GLXShell"); extern void (* mouseDownCallback)(unsigned int buttonNumber, unsigned int buttonMask, float x, float y, unsigned int modifiers, double referenceTime) __asm("mouseDownCallback$GLXShell"); extern void (* mouseUpCallback)(unsigned int buttonNumber, unsigned int buttonMask, float x, float y, unsigned int modifiers, double referenceTime) __asm("mouseUpCallback$GLXShell"); extern void (* mouseMovedCallback)(float x, float y, float deltaX, float deltaY, unsigned int modifiers, double referenceTime) __asm("mouseMovedCallback$GLXShell"); extern void (* mouseDraggedCallback)(unsigned int buttonMask, float x, float y, float deltaX, float deltaY, unsigned int modifiers, double referenceTime) __asm("mouseDraggedCallback$GLXShell"); extern void (* mouseLeaveCallback)(unsigned int modifiers, double referenceTime) __asm("mouseLeaveCallback$GLXShell"); extern void (* scrollWheelCallback)(float x, float y, int deltaX, int deltaY, unsigned int modifiers, double referenceTime) __asm("scrollWheelCallback$GLXShell"); extern void (* backgroundedCallback)(double referenceTime) __asm("backgroundedCallback$GLXShell"); extern void (* foregroundedCallback)(double referenceTime) __asm("foregroundedCallback$GLXShell"); extern bool (* confirmQuitCallback)(double referenceTime) __asm("confirmQuitCallback$GLXShell"); #ifdef __cplusplus } #endif #endif