adding generated opengl function binding

This commit is contained in:
Youmu Liu
2025-12-29 17:06:04 +08:00
parent b3dcd1b5c0
commit f9288c1b3d
47 changed files with 61260 additions and 3101 deletions
+22 -8
View File
@@ -1,4 +1,4 @@
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
// -----------------------------------------------------------------------
// file="framework"
// Project: StgSharp
@@ -43,15 +43,25 @@ namespace StgSharp.Graphics
/// <returns>
/// An Intptr value representing the pointer to the function
/// </returns>
public delegate IntPtr glLoader(string name);
public delegate IntPtr glLoader(
string name
);
#region StgSharpDele
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void FrameBufferSizeHandler(IntPtr window, int width, int height);
public unsafe delegate void FrameBufferSizeHandler(
IntPtr window,
int width,
int height
);
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
public unsafe delegate void FramePositionHandler(IntPtr window, float width, float height);
public unsafe delegate void FramePositionHandler(
IntPtr window,
float width,
float height
);
#endregion
@@ -65,7 +75,8 @@ namespace StgSharp.Graphics
int severity,
int length,
sbyte* message,
void* userParam);
void* userParam
);
internal unsafe delegate void GLDEBUGPROCARB(
int source,
int type,
@@ -73,7 +84,8 @@ namespace StgSharp.Graphics
int severity,
int length,
sbyte* message,
void* userParam);
void* userParam
);
internal unsafe delegate void GLDEBUGPROCKHR(
int source,
int type,
@@ -81,14 +93,16 @@ namespace StgSharp.Graphics
int severity,
int length,
sbyte* message,
void* userParam);
void* userParam
);
internal unsafe delegate void GLDEBUGPROCAMD(
uint id,
int category,
int severity,
int length,
sbyte* message,
void* userParam);
void* userParam
);
#endregion