daily update on 20231031 by nitload youmu, problem in loading api and converting function pointers
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user