Files
stgsharp/.vs/CopilotSnapshots/35034FC10B7A0D42B2D3A964032675D5/E47AD868D1B5AC4BBDC49A23756F9CB6/2630A00D9FBA53957EDB47293DF0F31D
T

120 lines
12 KiB
Plaintext

#include "glfw_function_table.h"
#include <string.h>
void LoadGLFWFunctions(GLFWFunctionTable* table) {
memset(table, 0, sizeof(GLFWFunctionTable));
table->glfwInit = (int (*)(void))glfwGetProcAddress("glfwInit");
table->glfwTerminate = (void (*)(void))glfwGetProcAddress("glfwTerminate");
table->glfwInitHint = (void (*)(int, int))glfwGetProcAddress("glfwInitHint");
table->glfwGetVersionString = (const char* (*)(void))glfwGetProcAddress("glfwGetVersionString");
table->glfwGetError = (int (*)(const char**))glfwGetProcAddress("glfwGetError");
table->glfwGetMonitors = (GLFWmonitor** (*)(int*))glfwGetProcAddress("glfwGetMonitors");
table->glfwGetPrimaryMonitor = (GLFWmonitor* (*)(void))glfwGetProcAddress("glfwGetPrimaryMonitor");
table->glfwGetMonitorPos = (void (*)(GLFWmonitor*, int*, int*))glfwGetProcAddress("glfwGetMonitorPos");
table->glfwGetMonitorWorkarea = (void (*)(GLFWmonitor*, int*, int*, int*, int*))glfwGetProcAddress("glfwGetMonitorWorkarea");
table->glfwGetMonitorPhysicalSize = (void (*)(GLFWmonitor*, int*, int*))glfwGetProcAddress("glfwGetMonitorPhysicalSize");
table->glfwGetMonitorContentScale = (void (*)(GLFWmonitor*, float*, float*))glfwGetProcAddress("glfwGetMonitorContentScale");
table->glfwGetMonitorName = (const char* (*)(GLFWmonitor*))glfwGetProcAddress("glfwGetMonitorName");
table->glfwSetMonitorUserPointer = (void (*)(GLFWmonitor*, void*))glfwGetProcAddress("glfwSetMonitorUserPointer");
table->glfwGetMonitorUserPointer = (void* (*)(GLFWmonitor*))glfwGetProcAddress("glfwGetMonitorUserPointer");
table->glfwSetMonitorCallback = (GLFWmonitorfun (*)(GLFWmonitorfun))glfwGetProcAddress("glfwSetMonitorCallback");
table->glfwGetVideoModes = (const GLFWvidmode* (*)(GLFWmonitor*, int*))glfwGetProcAddress("glfwGetVideoModes");
table->glfwGetVideoMode = (const GLFWvidmode* (*)(GLFWmonitor*))glfwGetProcAddress("glfwGetVideoMode");
table->glfwSetGamma = (void (*)(GLFWmonitor*, float))glfwGetProcAddress("glfwSetGamma");
table->glfwGetGammaRamp = (const GLFWgammaramp* (*)(GLFWmonitor*))glfwGetProcAddress("glfwGetGammaRamp");
table->glfwSetGammaRamp = (void (*)(GLFWmonitor*, const GLFWgammaramp*))glfwGetProcAddress("glfwSetGammaRamp");
table->glfwDefaultWindowHints = (void (*)(void))glfwGetProcAddress("glfwDefaultWindowHints");
table->glfwWindowHint = (void (*)(int, int))glfwGetProcAddress("glfwWindowHint");
table->glfwWindowHintString = (void (*)(int, const char*))glfwGetProcAddress("glfwWindowHintString");
table->glfwCreateWindow = (GLFWwindow* (*)(int, int, const char*, GLFWmonitor*, GLFWwindow*))glfwGetProcAddress("glfwCreateWindow");
table->glfwDestroyWindow = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwDestroyWindow");
table->glfwWindowShouldClose = (int (*)(GLFWwindow*))glfwGetProcAddress("glfwWindowShouldClose");
table->glfwSetWindowShouldClose = (void (*)(GLFWwindow*, int))glfwGetProcAddress("glfwSetWindowShouldClose");
table->glfwSetWindowTitle = (void (*)(GLFWwindow*, const char*))glfwGetProcAddress("glfwSetWindowTitle");
table->glfwSetWindowIcon = (void (*)(GLFWwindow*, int, const GLFWimage*))glfwGetProcAddress("glfwSetWindowIcon");
table->glfwGetWindowPos = (void (*)(GLFWwindow*, int*, int*))glfwGetProcAddress("glfwGetWindowPos");
table->glfwSetWindowPos = (void (*)(GLFWwindow*, int, int))glfwGetProcAddress("glfwSetWindowPos");
table->glfwGetWindowSize = (void (*)(GLFWwindow*, int*, int*))glfwGetProcAddress("glfwGetWindowSize");
table->glfwSetWindowSizeLimits = (void (*)(GLFWwindow*, int, int, int, int))glfwGetProcAddress("glfwSetWindowSizeLimits");
table->glfwSetWindowAspectRatio = (void (*)(GLFWwindow*, int, int))glfwGetProcAddress("glfwSetWindowAspectRatio");
table->glfwSetWindowSize = (void (*)(GLFWwindow*, int, int))glfwGetProcAddress("glfwSetWindowSize");
table->glfwGetFramebufferSize = (void (*)(GLFWwindow*, int*, int*))glfwGetProcAddress("glfwGetFramebufferSize");
table->glfwGetWindowFrameSize = (void (*)(GLFWwindow*, int*, int*, int*, int*))glfwGetProcAddress("glfwGetWindowFrameSize");
table->glfwGetWindowContentScale = (void (*)(GLFWwindow*, float*, float*))glfwGetProcAddress("glfwGetWindowContentScale");
table->glfwGetWindowOpacity = (float (*)(GLFWwindow*))glfwGetProcAddress("glfwGetWindowOpacity");
table->glfwSetWindowOpacity = (void (*)(GLFWwindow*, float))glfwGetProcAddress("glfwSetWindowOpacity");
table->glfwIconifyWindow = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwIconifyWindow");
table->glfwRestoreWindow = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwRestoreWindow");
table->glfwMaximizeWindow = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwMaximizeWindow");
table->glfwShowWindow = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwShowWindow");
table->glfwHideWindow = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwHideWindow");
table->glfwFocusWindow = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwFocusWindow");
table->glfwRequestWindowAttention = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwRequestWindowAttention");
table->glfwGetWindowMonitor = (GLFWmonitor* (*)(GLFWwindow*))glfwGetProcAddress("glfwGetWindowMonitor");
table->glfwSetWindowMonitor = (void (*)(GLFWwindow*, GLFWmonitor*, int, int, int, int, int))glfwGetProcAddress("glfwSetWindowMonitor");
table->glfwGetWindowAttrib = (int (*)(GLFWwindow*, int))glfwGetProcAddress("glfwGetWindowAttrib");
table->glfwSetWindowAttrib = (void (*)(GLFWwindow*, int, int))glfwGetProcAddress("glfwSetWindowAttrib");
table->glfwSetWindowUserPointer = (void (*)(GLFWwindow*, void*))glfwGetProcAddress("glfwSetWindowUserPointer");
table->glfwGetWindowUserPointer = (void* (*)(GLFWwindow*))glfwGetProcAddress("glfwGetWindowUserPointer");
table->glfwSetWindowPosCallback = (GLFWwindowposfun (*)(GLFWwindow*, GLFWwindowposfun))glfwGetProcAddress("glfwSetWindowPosCallback");
table->glfwSetWindowSizeCallback = (GLFWwindowsizefun (*)(GLFWwindow*, GLFWwindowsizefun))glfwGetProcAddress("glfwSetWindowSizeCallback");
table->glfwSetWindowCloseCallback = (GLFWwindowclosefun (*)(GLFWwindow*, GLFWwindowclosefun))glfwGetProcAddress("glfwSetWindowCloseCallback");
table->glfwSetWindowRefreshCallback = (GLFWwindowrefreshfun (*)(GLFWwindow*, GLFWwindowrefreshfun))glfwGetProcAddress("glfwSetWindowRefreshCallback");
table->glfwSetWindowFocusCallback = (GLFWwindowfocusfun (*)(GLFWwindow*, GLFWwindowfocusfun))glfwGetProcAddress("glfwSetWindowFocusCallback");
table->glfwSetWindowIconifyCallback = (GLFWwindowiconifyfun (*)(GLFWwindow*, GLFWwindowiconifyfun))glfwGetProcAddress("glfwSetWindowIconifyCallback");
table->glfwSetWindowMaximizeCallback = (GLFWwindowmaximizefun (*)(GLFWwindow*, GLFWwindowmaximizefun))glfwGetProcAddress("glfwSetWindowMaximizeCallback");
table->glfwSetFramebufferSizeCallback = (GLFWframebuffersizefun (*)(GLFWwindow*, GLFWframebuffersizefun))glfwGetProcAddress("glfwSetFramebufferSizeCallback");
table->glfwSetWindowContentScaleCallback = (GLFWwindowcontentscalefun (*)(GLFWwindow*, GLFWwindowcontentscalefun))glfwGetProcAddress("glfwSetWindowContentScaleCallback");
table->glfwPollEvents = (void (*)(void))glfwGetProcAddress("glfwPollEvents");
table->glfwWaitEvents = (void (*)(void))glfwGetProcAddress("glfwWaitEvents");
table->glfwWaitEventsTimeout = (void (*)(double))glfwGetProcAddress("glfwWaitEventsTimeout");
table->glfwPostEmptyEvent = (void (*)(void))glfwGetProcAddress("glfwPostEmptyEvent");
table->glfwGetInputMode = (int (*)(GLFWwindow*, int))glfwGetProcAddress("glfwGetInputMode");
table->glfwSetInputMode = (void (*)(GLFWwindow*, int, int))glfwGetProcAddress("glfwSetInputMode");
table->glfwRawMouseMotionSupported = (int (*)(void))glfwGetProcAddress("glfwRawMouseMotionSupported");
table->glfwGetKeyName = (const char* (*)(int, int))glfwGetProcAddress("glfwGetKeyName");
table->glfwGetKeyScancode = (int (*)(int))glfwGetProcAddress("glfwGetKeyScancode");
table->glfwGetKey = (int (*)(GLFWwindow*, int))glfwGetProcAddress("glfwGetKey");
table->glfwGetMouseButton = (int (*)(GLFWwindow*, int))glfwGetProcAddress("glfwGetMouseButton");
table->glfwGetCursorPos = (void (*)(GLFWwindow*, double*, double*))glfwGetProcAddress("glfwGetCursorPos");
table->glfwSetCursorPos = (void (*)(GLFWwindow*, double, double))glfwGetProcAddress("glfwSetCursorPos");
table->glfwCreateCursor = (GLFWcursor* (*)(const GLFWimage*, int, int))glfwGetProcAddress("glfwCreateCursor");
table->glfwCreateStandardCursor = (GLFWcursor* (*)(int))glfwGetProcAddress("glfwCreateStandardCursor");
table->glfwDestroyCursor = (void (*)(GLFWcursor*))glfwGetProcAddress("glfwDestroyCursor");
table->glfwSetCursor = (void (*)(GLFWwindow*, GLFWcursor*))glfwGetProcAddress("glfwSetCursor");
table->glfwSetKeyCallback = (GLFWkeyfun (*)(GLFWwindow*, GLFWkeyfun))glfwGetProcAddress("glfwSetKeyCallback");
table->glfwSetCharCallback = (GLFWcharfun (*)(GLFWwindow*, GLFWcharfun))glfwGetProcAddress("glfwSetCharCallback");
table->glfwSetCharModsCallback = (GLFWcharmodsfun (*)(GLFWwindow*, GLFWcharmodsfun))glfwGetProcAddress("glfwSetCharModsCallback");
table->glfwSetMouseButtonCallback = (GLFWmousebuttonfun (*)(GLFWwindow*, GLFWmousebuttonfun))glfwGetProcAddress("glfwSetMouseButtonCallback");
table->glfwSetCursorPosCallback = (GLFWcursorposfun (*)(GLFWwindow*, GLFWcursorposfun))glfwGetProcAddress("glfwSetCursorPosCallback");
table->glfwSetCursorEnterCallback = (GLFWcursorenterfun (*)(GLFWwindow*, GLFWcursorenterfun))glfwGetProcAddress("glfwSetCursorEnterCallback");
table->glfwSetScrollCallback = (GLFWscrollfun (*)(GLFWwindow*, GLFWscrollfun))glfwGetProcAddress("glfwSetScrollCallback");
table->glfwSetDropCallback = (GLFWdropfun (*)(GLFWwindow*, GLFWdropfun))glfwGetProcAddress("glfwSetDropCallback");
table->glfwJoystickPresent = (int (*)(int))glfwGetProcAddress("glfwJoystickPresent");
table->glfwGetJoystickAxes = (const float* (*)(int, int*))glfwGetProcAddress("glfwGetJoystickAxes");
table->glfwGetJoystickButtons = (const unsigned char* (*)(int, int*))glfwGetProcAddress("glfwGetJoystickButtons");
table->glfwGetJoystickHats = (const unsigned char* (*)(int, int*))glfwGetProcAddress("glfwGetJoystickHats");
table->glfwGetJoystickName = (const char* (*)(int))glfwGetProcAddress("glfwGetJoystickName");
table->glfwGetJoystickGUID = (const char* (*)(int))glfwGetProcAddress("glfwGetJoystickGUID");
table->glfwSetJoystickUserPointer = (void (*)(int, void*))glfwGetProcAddress("glfwSetJoystickUserPointer");
table->glfwGetJoystickUserPointer = (void* (*)(int))glfwGetProcAddress("glfwGetJoystickUserPointer");
table->glfwJoystickIsGamepad = (int (*)(int))glfwGetProcAddress("glfwJoystickIsGamepad");
table->glfwSetJoystickCallback = (GLFWjoystickfun (*)(GLFWjoystickfun))glfwGetProcAddress("glfwSetJoystickCallback");
table->glfwUpdateGamepadMappings = (int (*)(const char*))glfwGetProcAddress("glfwUpdateGamepadMappings");
table->glfwGetGamepadName = (const char* (*)(int))glfwGetProcAddress("glfwGetGamepadName");
table->glfwGetGamepadState = (int (*)(int, GLFWgamepadstate*))glfwGetProcAddress("glfwGetGamepadState");
table->glfwSetClipboardString = (void (*)(GLFWwindow*, const char*))glfwGetProcAddress("glfwSetClipboardString");
table->glfwGetClipboardString = (const char* (*)(GLFWwindow*))glfwGetProcAddress("glfwGetClipboardString");
table->glfwGetTime = (double (*)(void))glfwGetProcAddress("glfwGetTime");
table->glfwSetTime = (void (*)(double))glfwGetProcAddress("glfwSetTime");
table->glfwGetTimerValue = (uint64_t (*)(void))glfwGetProcAddress("glfwGetTimerValue");
table->glfwGetTimerFrequency = (uint64_t (*)(void))glfwGetProcAddress("glfwGetTimerFrequency");
table->glfwMakeContextCurrent = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwMakeContextCurrent");
table->glfwGetCurrentContext = (GLFWwindow* (*)(void))glfwGetProcAddress("glfwGetCurrentContext");
table->glfwSwapBuffers = (void (*)(GLFWwindow*))glfwGetProcAddress("glfwSwapBuffers");
table->glfwSwapInterval = (void (*)(int))glfwGetProcAddress("glfwSwapInterval");
table->glfwExtensionSupported = (int (*)(const char*))glfwGetProcAddress("glfwExtensionSupported");
table->glfwGetProcAddress = (GLFWglproc (*)(const char*))glfwGetProcAddress("glfwGetProcAddress");
table->glfwVulkanSupported = (int (*)(void))glfwGetProcAddress("glfwVulkanSupported");
table->glfwGetRequiredInstanceExtensions = (const char** (*)(uint32_t*))glfwGetProcAddress("glfwGetRequiredInstanceExtensions");
}