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
+6 -4
View File
@@ -1,6 +1,7 @@
using StgSharp.Controlling;
using StgSharp.Graphics;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
namespace StgSharp
@@ -11,7 +12,7 @@ namespace StgSharp
[DllImport(SSGC_libname, EntryPoint = "initGL",
CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Ansi)]
internal static extern unsafe IntPtr InternalInitGL(int majorVersion, int minorVersion, GLFWapi* context);
internal static extern unsafe IntPtr InternalInitGL(int majorVersion, int minorVersion, GLFWapi* ptr);
[DllImport(SSGC_libname, EntryPoint = "linkShaderProgram",
CallingConvention = CallingConvention.Cdecl)]
@@ -151,13 +152,14 @@ namespace StgSharp
internal static glfwWindowHint glfw_WindowHint;
internal static glfwWindowHintString glfw_WindowHintString;
internal static glfwWindowShouldClose glfw_WindowShouldClose;
//internal static glfwGetInstanceProcAddress glfw_GetInstanceProcAddress;
//internal static glfwGetPhysicalDevicePresentationSupport glfw_GetPhysicalDevicePresentationSupport;
//internal static glfwCreateWindowSurface glfw_CreateWindowSurface;
//internal [NotNull] static glfwGetInstanceProcAddress glfw_GetInstanceProcAddress;
//internal [NotNull] static glfwGetPhysicalDevicePresentationSupport glfw_GetPhysicalDevicePresentationSupport;
//internal [NotNull] static glfwCreateWindowSurface glfw_CreateWindowSurface;
#endregion
}
[StructLayout(LayoutKind.Sequential)]