daily update on 20231031 by nitload youmu, problem in loading api and converting function pointers

This commit is contained in:
Nitload
2023-11-01 02:41:08 +08:00
parent cb87cad98c
commit 588a61d514
61 changed files with 1624 additions and 3164 deletions
+123 -2
View File
@@ -10,7 +10,6 @@ namespace StgSharp.Graphics
public static unsafe partial class GL
{
internal unsafe static GLcontext* context;
internal unsafe static GLFWapi glfw;
public static unsafe IntPtr LoadGLfunc(string name)
{
@@ -3459,7 +3458,6 @@ namespace StgSharp.Graphics
}
[StructLayout(LayoutKind.Sequential)]
internal struct GLFWapi
{
@@ -3585,5 +3583,128 @@ namespace StgSharp.Graphics
}
[StructLayout(LayoutKind.Sequential)]
internal struct glfwpack
{
internal glfwInit glfw_Init;
internal glfwTerminate glfw_Terminate;
internal glfwInitHint glfw_InitHint;
internal glfwGetVersion glfw_GetVersion;
internal glfwGetVersionString glfw_GetVersionString;
internal glfwGetError glfw_GetError;
internal glfwSetErrorCallback glfw_SetErrorCallback;
internal glfwGetMonitors glfw_GetMonitors;
internal glfwGetPrimaryMonitor glfw_GetPrimaryMonitor;
internal glfwGetMonitorPos glfw_GetMonitorPos;
internal glfwGetMonitorWorkarea glfw_GetMonitorWorkarea;
internal glfwGetMonitorPhysicalSize glfw_GetMonitorPhysicalSize;
internal glfwGetMonitorContentScale glfw_GetMonitorContentScale;
internal glfwGetMonitorName glfw_GetMonitorName;
internal glfwSetMonitorUserPointer glfw_SetMonitorUserPointer;
internal glfwGetMonitorUserPointer glfw_GetMonitorUserPointer;
internal glfwSetMonitorCallback glfw_SetMonitorCallback;
internal glfwGetVideoModes glfw_GetVideoModes;
internal glfwGetVideoMode glfw_GetVideoMode;
internal glfwSetGamma glfw_SetGamma;
internal glfwGetGammaRamp glfw_GetGammaRamp;
internal glfwSetGammaRamp glfw_SetGammaRamp;
internal glfwDefaultWindowHints glfw_DefaultWindowHints;
internal glfwWindowHint glfw_WindowHint;
internal glfwWindowHintString glfw_WindowHintString;
internal glfwCreateWindow glfw_CreateWindow;
internal glfwDestroyWindow glfw_DestroyWindow;
internal glfwWindowShouldClose glfw_WindowShouldClose;
internal glfwSetWindowShouldClose glfw_SetWindowShouldClose;
internal glfwSetWindowTitle glfw_SetWindowTitle;
internal glfwSetWindowIcon glfw_SetWindowIcon;
internal glfwGetWindowPos glfw_GetWindowPos;
internal glfwSetWindowPos glfw_SetWindowPos;
internal glfwGetWindowSize glfw_GetWindowSize;
internal glfwSetWindowSizeLimits glfw_SetWindowSizeLimits;
internal glfwSetWindowAspectRatio glfw_SetWindowAspectRatio;
internal glfwSetWindowSize glfw_SetWindowSize;
internal glfwGetFramebufferSize glfw_GetFramebufferSize;
internal glfwGetWindowFrameSize glfw_GetWindowFrameSize;
internal glfwGetWindowContentScale glfw_GetWindowContentScale;
internal glfwGetWindowOpacity glfw_GetWindowOpacity;
internal glfwSetWindowOpacity glfw_SetWindowOpacity;
internal glfwIconifyWindow glfw_IconifyWindow;
internal glfwRestoreWindow glfw_RestoreWindow;
internal glfwMaximizeWindow glfw_MaximizeWindow;
internal glfwShowWindow glfw_ShowWindow;
internal glfwHideWindow glfw_HideWindow;
internal glfwFocusWindow glfw_FocusWindow;
internal glfwRequestWindowAttention glfw_RequestWindowAttention;
internal glfwGetWindowMonitor glfw_GetWindowMonitor;
internal glfwSetWindowMonitor glfw_SetWindowMonitor;
internal glfwGetWindowAttrib glfw_GetWindowAttrib;
internal glfwSetWindowAttrib glfw_SetWindowAttrib;
internal glfwSetWindowUserPointer glfw_SetWindowUserPointer;
internal glfwGetWindowUserPointer glfw_GetWindowUserPointer;
internal glfwSetWindowPosCallback glfw_SetWindowPosCallback;
internal glfwSetWindowSizeCallback glfw_SetWindowSizeCallback;
internal glfwSetWindowCloseCallback glfw_SetWindowCloseCallback;
internal glfwSetWindowRefreshCallback glfw_SetWindowRefreshCallback;
internal glfwSetWindowFocusCallback glfw_SetWindowFocusCallback;
internal glfwSetWindowIconifyCallback glfw_SetWindowIconifyCallback;
internal glfwSetWindowMaximizeCallback glfw_SetWindowMaximizeCallback;
internal glfwSetFramebufferSizeCallback glfw_SetFramebufferSizeCallback;
internal glfwSetWindowContentScaleCallback glfw_SetWindowContentScaleCallback;
internal glfwPollEvents glfw_PollEvents;
internal glfwWaitEvents glfw_WaitEvents;
internal glfwWaitEventsTimeout glfw_WaitEventsTimeout;
internal glfwPostEmptyEvent glfw_PostEmptyEvent;
internal glfwGetInputMode glfw_GetInputMode;
internal glfwSetInputMode glfw_SetInputMode;
internal glfwRawMouseMotionSupported glfw_RawMouseMotionSupported;
internal glfwGetKeyName glfw_GetKeyName;
internal glfwGetKeyScancode glfw_GetKeyScancode;
internal glfwGetKey glfw_GetKey;
internal glfwGetMouseButton glfw_GetMouseButton;
internal glfwGetCursorPos glfw_GetCursorPos;
internal glfwSetCursorPos glfw_SetCursorPos;
internal glfwCreateCursor glfw_CreateCursor;
internal glfwCreateStandardCursor glfw_CreateStandardCursor;
internal glfwDestroyCursor glfw_DestroyCursor;
internal glfwSetCursor glfw_SetCursor;
internal glfwSetKeyCallback glfw_SetKeyCallback;
internal glfwSetCharCallback glfw_SetCharCallback;
internal glfwSetCharModsCallback glfw_SetCharModsCallback;
internal glfwSetMouseButtonCallback glfw_SetMouseButtonCallback;
internal glfwSetCursorPosCallback glfw_SetCursorPosCallback;
internal glfwSetCursorEnterCallback glfw_SetCursorEnterCallback;
internal glfwSetScrollCallback glfw_SetScrollCallback;
internal glfwSetDropCallback glfw_SetDropCallback;
internal glfwJoystickPresent glfw_JoystickPresent;
internal glfwGetJoystickAxes glfw_GetJoystickAxes;
internal glfwGetJoystickButtons glfw_GetJoystickButtons;
internal glfwGetJoystickHats glfw_GetJoystickHats;
internal glfwGetJoystickName glfw_GetJoystickName;
internal glfwGetJoystickGUID glfw_GetJoystickGUID;
internal glfwSetJoystickUserPointer glfw_SetJoystickUserPointer;
internal glfwGetJoystickUserPointer glfw_GetJoystickUserPointer;
internal glfwJoystickIsGamepad glfw_JoystickIsGamepad;
internal glfwSetJoystickCallback glfw_SetJoystickCallback;
internal glfwUpdateGamepadMappings glfw_UpdateGamepadMappings;
internal glfwGetGamepadName glfw_GetGamepadName;
internal glfwGetGamepadState glfw_GetGamepadState;
internal glfwSetClipboardString glfw_SetClipboardString;
internal glfwGetClipboardString glfw_GetClipboardString;
internal glfwGetTime glfw_GetTime;
internal glfwSetTime glfw_SetTime;
internal glfwGetTimerValue glfw_GetTimerValue;
internal glfwGetTimerFrequency glfw_GetTimerFrequency;
internal glfwMakeContextCurrent glfw_MakeContextCurrent;
internal glfwGetCurrentContext glfw_GetCurrentContext;
internal glfwSwapBuffers glfw_SwapBuffers;
internal glfwSwapInterval glfw_SwapInterval;
internal glfwExtensionSupported glfw_ExtensionSupported;
internal glfwGetProcAddress glfw_GetProcAddress;
internal glfwVulkanSupported glfw_VulkanSupported;
internal glfwGetRequiredInstanceExtensions glfw_GetRequiredInstanceExtensions;
//internal glfwGetInstanceProcAddress glfw_GetInstanceProcAddress;
//internal glfwGetPhysicalDevicePresentationSupport glfw_GetPhysicalDevicePresentationSupport;
//internal glfwCreateWindowSurface glfw_CreateWindowSurface;
}
}