#ifndef GLFW_FUNCTION_TABLE_H #define GLFW_FUNCTION_TABLE_H #include "glfw3_no_comments.h" #ifdef __cplusplus extern "C" { #endif typedef struct GLFWFunctionTable { void (*glfwCreateCursor)(GLFWimage* image, int xhot, int yhot); GLFWcursor* (*glfwCreateStandardCursor)(int shape); GLFWwindow* (*glfwCreateWindow)(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share); void (*glfwDefaultWindowHints)(void); void (*glfwDestroyCursor)(GLFWcursor* cursor); void (*glfwDestroyWindow)(GLFWwindow* window); void (*glfwFocusWindow)(GLFWwindow* window); const char* (*glfwGetClipboardString)(GLFWwindow* window); GLFWwindow* (*glfwGetCurrentContext)(void); void (*glfwGetCursorPos)(GLFWwindow* window, double* xpos, double* ypos); int (*glfwGetError)(const char** description); void (*glfwGetFramebufferSize)(GLFWwindow* window, int* width, int* height); const char* (*glfwGetGamepadName)(int jid); int (*glfwGetGamepadState)(int jid, GLFWgamepadstate* state); const GLFWgammaramp* (*glfwGetGammaRamp)(GLFWmonitor* monitor); int (*glfwGetInputMode)(GLFWwindow* window, int mode); const float* (*glfwGetJoystickAxes)(int jid, int* count); const unsigned char* (*glfwGetJoystickButtons)(int jid, int* count); const char* (*glfwGetJoystickGUID)(int jid); const unsigned char* (*glfwGetJoystickHats)(int jid, int* count); const char* (*glfwGetJoystickName)(int jid); void* (*glfwGetJoystickUserPointer)(int jid); int (*glfwGetKey)(GLFWwindow* window, int key); const char* (*glfwGetKeyName)(int key, int scancode); int (*glfwGetKeyScancode)(int key); void (*glfwGetMonitorContentScale)(GLFWmonitor* monitor, float* xscale, float* yscale); const char* (*glfwGetMonitorName)(GLFWmonitor* monitor); void (*glfwGetMonitorPhysicalSize)(GLFWmonitor* monitor, int* widthMM, int* heightMM); void (*glfwGetMonitorPos)(GLFWmonitor* monitor, int* xpos, int* ypos); GLFWmonitor** (*glfwGetMonitors)(int* count); void* (*glfwGetMonitorUserPointer)(GLFWmonitor* monitor); void (*glfwGetMonitorWorkarea)(GLFWmonitor* monitor, int* xpos, int* ypos, int* width, int* height); int (*glfwGetMouseButton)(GLFWwindow* window, int button); GLFWmonitor* (*glfwGetPrimaryMonitor)(void); double (*glfwGetTime)(void); uint64_t (*glfwGetTimerFrequency)(void); uint64_t (*glfwGetTimerValue)(void); const char* (*glfwGetVersionString)(void); const GLFWvidmode* (*glfwGetVideoMode)(GLFWmonitor* monitor); const GLFWvidmode* (*glfwGetVideoModes)(GLFWmonitor* monitor, int* count); int (*glfwGetWindowAttrib)(GLFWwindow* window, int attrib); void (*glfwGetWindowContentScale)(GLFWwindow* window, float* xscale, float* yscale); void (*glfwGetWindowFrameSize)(GLFWwindow* window, int* left, int* top, int* right, int* bottom); GLFWmonitor* (*glfwGetWindowMonitor)(GLFWwindow* window); float (*glfwGetWindowOpacity)(GLFWwindow* window); void (*glfwGetWindowPos)(GLFWwindow* window, int* xpos, int* ypos); void (*glfwGetWindowSize)(GLFWwindow* window, int* width, int* height); void* (*glfwGetWindowUserPointer)(GLFWwindow* window); void (*glfwHideWindow)(GLFWwindow* window); void (*glfwIconifyWindow)(GLFWwindow* window); int (*glfwInit)(void); void (*glfwInitHint)(int hint, int value); void (*glfwMakeContextCurrent)(GLFWwindow* window); void (*glfwMaximizeWindow)(GLFWwindow* window); void (*glfwPollEvents)(void); void (*glfwPostEmptyEvent)(void); void (*glfwRequestWindowAttention)(GLFWwindow* window); int (*glfwRawMouseMotionSupported)(void); void (*glfwRestoreWindow)(GLFWwindow* window); void (*glfwSetClipboardString)(GLFWwindow* window, const char* string); GLFWcharfun (*glfwSetCharCallback)(GLFWwindow* window, GLFWcharfun callback); GLFWcharmodsfun (*glfwSetCharModsCallback)(GLFWwindow* window, GLFWcharmodsfun callback); void (*glfwSetCursor)(GLFWwindow* window, GLFWcursor* cursor); GLFWcursorenterfun (*glfwSetCursorEnterCallback)(GLFWwindow* window, GLFWcursorenterfun callback); void (*glfwSetCursorPos)(GLFWwindow* window, double xpos, double ypos); GLFWcursorposfun (*glfwSetCursorPosCallback)(GLFWwindow* window, GLFWcursorposfun callback); GLFWdropfun (*glfwSetDropCallback)(GLFWwindow* window, GLFWdropfun callback); void (*glfwSetGammaRamp)(GLFWmonitor* monitor, const GLFWgammaramp* ramp); GLFWjoystickfun (*glfwSetJoystickCallback)(GLFWjoystickfun callback); void (*glfwSetJoystickUserPointer)(int jid, void* pointer); GLFWkeyfun (*glfwSetKeyCallback)(GLFWwindow* window, GLFWkeyfun callback); void (*glfwSetMonitorUserPointer)(GLFWmonitor* monitor, void* pointer); GLFWmonitorfun (*glfwSetMonitorCallback)(GLFWmonitorfun callback); void (*glfwSetTime)(double time); void (*glfwSetWindowAspectRatio)(GLFWwindow* window, int numer, int denom); void (*glfwSetWindowAttrib)(GLFWwindow* window, int attrib, int value); GLFWwindowclosefun (*glfwSetWindowCloseCallback)(GLFWwindow* window, GLFWwindowclosefun callback); void (*glfwSetWindowIcon)(GLFWwindow* window, int count, const GLFWimage* images); GLFWwindowiconifyfun (*glfwSetWindowIconifyCallback)(GLFWwindow* window, GLFWwindowiconifyfun callback); GLFWwindowfocusfun (*glfwSetWindowFocusCallback)(GLFWwindow* window, GLFWwindowfocusfun callback); GLFWframebuffersizefun (*glfwSetFramebufferSizeCallback)(GLFWwindow* window, GLFWframebuffersizefun callback); GLFWwindowmaximizefun (*glfwSetWindowMaximizeCallback)(GLFWwindow* window, GLFWwindowmaximizefun callback); void (*glfwSetWindowMonitor)(GLFWwindow* window, GLFWmonitor* monitor, int xpos, int ypos, int width, int height, int refreshRate); GLFWmousebuttonfun (*glfwSetMouseButtonCallback)(GLFWwindow* window, GLFWmousebuttonfun callback); void (*glfwSetWindowOpacity)(GLFWwindow* window, float opacity); GLFWwindowposfun (*glfwSetWindowPosCallback)(GLFWwindow* window, GLFWwindowposfun callback); void (*glfwSetWindowPos)(GLFWwindow* window, int xpos, int ypos); GLFWscrollfun (*glfwSetScrollCallback)(GLFWwindow* window, GLFWscrollfun callback); void (*glfwSetWindowShouldClose)(GLFWwindow* window, int value); void (*glfwSetWindowSizeLimits)(GLFWwindow* window, int minwidth, int minheight, int maxwidth, int maxheight); GLFWwindowsizefun (*glfwSetWindowSizeCallback)(GLFWwindow* window, GLFWwindowsizefun callback); void (*glfwSetWindowSize)(GLFWwindow* window, int width, int height); void (*glfwSetWindowTitle)(GLFWwindow* window, const char* title); void (*glfwSetWindowUserPointer)(GLFWwindow* window, void* pointer); GLFWwindowrefreshfun (*glfwSetWindowRefreshCallback)(GLFWwindow* window, GLFWwindowrefreshfun callback); GLFWwindowcontentscalefun (*glfwSetWindowContentScaleCallback)(GLFWwindow* window, GLFWwindowcontentscalefun callback); void (*glfwSwapBuffers)(GLFWwindow* window); void (*glfwSwapInterval)(int interval); void (*glfwTerminate)(void); int (*glfwUpdateGamepadMappings)(const char* string); void (*glfwWaitEvents)(void); void (*glfwWaitEventsTimeout)(double timeout); int (*glfwVulkanSupported)(void); int (*glfwWindowShouldClose)(GLFWwindow* window); } GLFWFunctionTable; void LoadGLFWFunctions(GLFWFunctionTable* table); #ifdef __cplusplus } #endif #endif