124 lines
6.4 KiB
C
124 lines
6.4 KiB
C
#include "StgSharpNative.h"
|
|
#include "glfw_function.h"
|
|
#include <string.h>
|
|
|
|
SN_API void SN_DECL load_glfw_functions(GLFWFunctionTable *table)
|
|
{
|
|
table->glfwCreateCursor = glfwCreateCursor;
|
|
table->glfwCreateStandardCursor = glfwCreateStandardCursor;
|
|
table->glfwCreateWindow = glfwCreateWindow;
|
|
table->glfwDefaultWindowHints = glfwDefaultWindowHints;
|
|
table->glfwDestroyCursor = glfwDestroyCursor;
|
|
table->glfwDestroyWindow = glfwDestroyWindow;
|
|
table->glfwExtensionSupported = glfwExtensionSupported;
|
|
table->glfwFocusWindow = glfwFocusWindow;
|
|
table->glfwGetClipboardString = glfwGetClipboardString;
|
|
table->glfwGetCurrentContext = glfwGetCurrentContext;
|
|
table->glfwGetCursorPos = glfwGetCursorPos;
|
|
table->glfwGetError = glfwGetError;
|
|
table->glfwGetFrameBufferSize = glfwGetFramebufferSize;
|
|
table->glfwGetGamepadName = glfwGetGamepadName;
|
|
table->glfwGetGamepadState = glfwGetGamepadState;
|
|
table->glfwGetGammaRamp = glfwGetGammaRamp;
|
|
table->glfwGetInputMode = glfwGetInputMode;
|
|
table->glfwGetJoystickAxes = glfwGetJoystickAxes;
|
|
table->glfwGetJoystickButtons = glfwGetJoystickButtons;
|
|
table->glfwGetJoystickGUID = glfwGetJoystickGUID;
|
|
table->glfwGetJoystickHats = glfwGetJoystickHats;
|
|
table->glfwGetJoystickName = glfwGetJoystickName;
|
|
table->glfwGetJoystickUserPointer = glfwGetJoystickUserPointer;
|
|
table->glfwGetKey = glfwGetKey;
|
|
table->glfwGetKeyName = glfwGetKeyName;
|
|
table->glfwGetKeyScancode = glfwGetKeyScancode;
|
|
table->glfwGetMonitorContentScale = glfwGetMonitorContentScale;
|
|
table->glfwGetMonitorName = glfwGetMonitorName;
|
|
table->glfwGetMonitorPhysicalSize = glfwGetMonitorPhysicalSize;
|
|
table->glfwGetMonitorPos = glfwGetMonitorPos;
|
|
table->glfwGetMonitors = glfwGetMonitors;
|
|
table->glfwGetMonitorUserPointer = glfwGetMonitorUserPointer;
|
|
table->glfwGetMonitorWorkarea = glfwGetMonitorWorkarea;
|
|
table->glfwGetMouseButton = glfwGetMouseButton;
|
|
table->glfwGetPrimaryMonitor = glfwGetPrimaryMonitor;
|
|
table->glfwGetProcAddress = glfwGetProcAddress;
|
|
table->glfwGetRequiredInstanceExtensions = glfwGetRequiredInstanceExtensions;
|
|
table->glfwGetTime = glfwGetTime;
|
|
table->glfwGetTimerFrequency = glfwGetTimerFrequency;
|
|
table->glfwGetTimerValue = glfwGetTimerValue;
|
|
table->glfwGetVersion = glfwGetVersion;
|
|
table->glfwGetVersionString = glfwGetVersionString;
|
|
table->glfwGetVideoMode = glfwGetVideoMode;
|
|
table->glfwGetVideoModes = glfwGetVideoModes;
|
|
table->glfwGetWindowAttrib = glfwGetWindowAttrib;
|
|
table->glfwGetWindowContentScale = glfwGetWindowContentScale;
|
|
table->glfwGetWindowFrameSize = glfwGetWindowFrameSize;
|
|
table->glfwGetWindowMonitor = glfwGetWindowMonitor;
|
|
table->glfwGetWindowOpacity = glfwGetWindowOpacity;
|
|
table->glfwGetWindowPos = glfwGetWindowPos;
|
|
table->glfwGetWindowSize = glfwGetWindowSize;
|
|
table->glfwGetWindowUserPointer = glfwGetWindowUserPointer;
|
|
table->glfwHideWindow = glfwHideWindow;
|
|
table->glfwIconifyWindow = glfwIconifyWindow;
|
|
table->glfwInit = glfwInit;
|
|
table->glfwInitHint = glfwInitHint;
|
|
table->glfwJoystickIsGamePad = glfwJoystickIsGamepad;
|
|
table->glfwJoystickPresent = glfwJoystickPresent;
|
|
table->glfwMakeContextCurrent = glfwMakeContextCurrent;
|
|
table->glfwMaximizeWindow = glfwMaximizeWindow;
|
|
table->glfwPollEvents = glfwPollEvents;
|
|
table->glfwPostEmptyEvent = glfwPostEmptyEvent;
|
|
table->glfwRawMouseMotionSupported = glfwRawMouseMotionSupported;
|
|
table->glfwRequestWindowAttention = glfwRequestWindowAttention;
|
|
table->glfwRestoreWindow = glfwRestoreWindow;
|
|
table->glfwSetCharCallback = glfwSetCharCallback;
|
|
table->glfwSetCharModsCallback = glfwSetCharModsCallback;
|
|
table->glfwSetClipboardString = glfwSetClipboardString;
|
|
table->glfwSetCursor = glfwSetCursor;
|
|
table->glfwSetCursorEnterCallback = glfwSetCursorEnterCallback;
|
|
table->glfwSetCursorPos = glfwSetCursorPos;
|
|
table->glfwSetCursorPosCallback = glfwSetCursorPosCallback;
|
|
table->glfwSetDropCallback = glfwSetDropCallback;
|
|
table->glfwSetErrorCallback = glfwSetErrorCallback;
|
|
table->glfwSetFramebufferSizeCallback = glfwSetFramebufferSizeCallback;
|
|
table->glfwSetGamma = glfwSetGamma;
|
|
table->glfwSetGammaRamp = glfwSetGammaRamp;
|
|
table->glfwSetInputMode = glfwSetInputMode;
|
|
table->glfwSetJoystickCallback = glfwSetJoystickCallback;
|
|
table->glfwSetJoystickUserPointer = glfwSetJoystickUserPointer;
|
|
table->glfwSetKeyCallback = glfwSetKeyCallback;
|
|
table->glfwSetMonitorCallback = glfwSetMonitorCallback;
|
|
table->glfwSetMonitorUserPointer = glfwSetMonitorUserPointer;
|
|
table->glfwSetMouseButtonCallback = glfwSetMouseButtonCallback;
|
|
table->glfwSetScrollCallback = glfwSetScrollCallback;
|
|
table->glfwSetTime = glfwSetTime;
|
|
table->glfwSetWindowAspectRatio = glfwSetWindowAspectRatio;
|
|
table->glfwSetWindowAttrib = glfwSetWindowAttrib;
|
|
table->glfwSetWindowCloseCallback = glfwSetWindowCloseCallback;
|
|
table->glfwSetWindowContentScaleCallback = glfwSetWindowContentScaleCallback;
|
|
table->glfwSetWindowFocusCallback = glfwSetWindowFocusCallback;
|
|
table->glfwSetWindowIcon = glfwSetWindowIcon;
|
|
table->glfwSetWindowIconifyCallback = glfwSetWindowIconifyCallback;
|
|
table->glfwSetWindowMaximizeCallback = glfwSetWindowMaximizeCallback;
|
|
table->glfwSetWindowMonitor = glfwSetWindowMonitor;
|
|
table->glfwSetWindowOpacity = glfwSetWindowOpacity;
|
|
table->glfwSetWindowPos = glfwSetWindowPos;
|
|
table->glfwSetWindowPosCallback = glfwSetWindowPosCallback;
|
|
table->glfwSetWindowRefreshCallback = glfwSetWindowRefreshCallback;
|
|
table->glfwSetWindowShouldClose = glfwSetWindowShouldClose;
|
|
table->glfwSetWindowSize = glfwSetWindowSize;
|
|
table->glfwSetWindowSizeCallback = glfwSetWindowSizeCallback;
|
|
table->glfwSetWindowSizeLimits = glfwSetWindowSizeLimits;
|
|
table->glfwSetWindowTitle = glfwSetWindowTitle;
|
|
table->glfwSetWindowUserPointer = glfwSetWindowUserPointer;
|
|
table->glfwShowWindow = glfwShowWindow;
|
|
table->glfwSwapBuffers = glfwSwapBuffers;
|
|
table->glfwSwapInterval = glfwSwapInterval;
|
|
table->glfwTerminate = glfwTerminate;
|
|
table->glfwUpdateGamePadMappings = glfwUpdateGamepadMappings;
|
|
table->glfwVulkanSupported = glfwVulkanSupported;
|
|
table->glfwWaitEvents = glfwWaitEvents;
|
|
table->glfwWaitEventsTimeout = glfwWaitEventsTimeout;
|
|
table->glfwWindowHint = glfwWindowHint;
|
|
table->glfwWindowHintString = glfwWindowHintString;
|
|
table->glfwWindowShouldClose = glfwWindowShouldClose;
|
|
}
|