daily update on 20230628 by nitload youmu, new debug and graphic lib added

This commit is contained in:
Nitload
2023-06-29 02:10:56 +08:00
parent f99a0674b0
commit 04b166771c
277 changed files with 19879 additions and 12406 deletions
+49 -31
View File
@@ -9,7 +9,7 @@ namespace StgSharp.Graphics
//strucs defined in glfw3.h
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWcontext
{
int client;
@@ -69,7 +69,7 @@ namespace StgSharp.Graphics
//GLFW_PLATFORM_CONTEXT_STATE
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWvidmode
{
/*! The width, in screen coordinates, of the video mode.
@@ -92,6 +92,7 @@ namespace StgSharp.Graphics
int refreshRate;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWgammaramp
{
@@ -109,6 +110,7 @@ namespace StgSharp.Graphics
uint size;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWimage
{
@@ -123,6 +125,7 @@ namespace StgSharp.Graphics
byte* pixels;
}
[StructLayout(LayoutKind.Sequential)]
public struct GLFWgamepadstate
{
@@ -140,6 +143,7 @@ namespace StgSharp.Graphics
}
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWallocator
{
//GLFWallocatefun allocate;
@@ -151,6 +155,7 @@ namespace StgSharp.Graphics
void* user;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWmonitor
{
@@ -178,47 +183,48 @@ namespace StgSharp.Graphics
public GLFWmonitor() { }
}
public unsafe struct _GLFWwindow
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWwindow
{
//struct _GLFWwindow* next in GLFW
public IntPtr next;
public IntPtr next = IntPtr.Zero;
public bool resizable;
public bool decorated;
public bool autoIconify;
public bool floating;
public bool focusOnShow;
public bool mousePassthrough;
public bool shouldClose;
public void* userPointer;
public bool doublebuffer;
public GLFWvidmode videoMode;
//public GLFWmonitor* monitor;
public IntPtr monitor;
public GLFWcursor* cursor;
public bool resizable = false;
public bool decorated = false;
public bool autoIconify = false;
public bool floating = false;
public bool focusOnShow = false;
public bool mousePassthrough = false;
public bool shouldClose = false;
public void* userPointer = (void*)0;
public bool doublebuffer = false;
public GLFWvidmode videoMode = default;
public IntPtr monitor = IntPtr.Zero; //public GLFWmonitor* monitor;
public GLFWcursor* cursor = (GLFWcursor*)0;
public int minwidth, minheight;
public int maxwidth, maxheight;
public int numer, denom;
public int minwidth = 0, minheight = 0;
public int maxwidth = 0, maxheight = 0;
public int numer = 0, denom = 0;
public bool stickyKeys;
public bool stickyMouseButtons;
public bool lockKeyMods;
public int cursorMode;
public bool stickyKeys = false;
public bool stickyMouseButtons = false;
public bool lockKeyMods = false;
public int cursorMode = 0;
public char[] mouseButtons = new char[8];
public char[] keys = new char[349];
// Virtual cursor position when cursor is disabled
public double virtualCursorPosX, virtualCursorPosY;
public bool rawMouseMotion;
public double virtualCursorPosX = 0, virtualCursorPosY = 0;
public bool rawMouseMotion = false;
public GLFWcontext context;
public GLFWcontext context = default;
public _GLFWwindow()
public GLFWwindow()
{
}
}
[StructLayout(LayoutKind.Sequential)]
public struct GLFWcursor
{
//_GLFWcursor* next;
@@ -229,6 +235,7 @@ namespace StgSharp.Graphics
// GLFW_PLATFORM_CURSOR_STATE;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWerror
{
@@ -242,6 +249,7 @@ namespace StgSharp.Graphics
}
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWinitconfig
{
@@ -265,6 +273,7 @@ namespace StgSharp.Graphics
}
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWwndconfig
{
@@ -286,7 +295,7 @@ namespace StgSharp.Graphics
GLFWbool scaleToMonitor;
internal struct Ns
{
GLFWbool retina;
GLFWbool retina = false;
char[] frameName = new char[256];
public Ns()
@@ -327,6 +336,7 @@ namespace StgSharp.Graphics
}
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWctxconfig
{
int client;
@@ -352,6 +362,7 @@ namespace StgSharp.Graphics
}
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWfbconfig
{
@@ -374,7 +385,7 @@ namespace StgSharp.Graphics
uintptr_t handle;
}
[StructLayout(LayoutKind.Sequential)]
internal unsafe struct _GLFWlibrary
{
GLFWbool initialized;
@@ -519,6 +530,7 @@ namespace StgSharp.Graphics
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct _GLFWmapelement
{
byte type;
@@ -527,6 +539,7 @@ namespace StgSharp.Graphics
sbyte axisOffset;
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct _GLFWmapping
{
@@ -538,6 +551,7 @@ namespace StgSharp.Graphics
public _GLFWmapping() { }
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct _GLFWjoystick
{
@@ -562,6 +576,7 @@ namespace StgSharp.Graphics
public _GLFWjoystick() { }
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct _GLFWtls
{
// This is defined in platform.h
@@ -569,7 +584,7 @@ namespace StgSharp.Graphics
//GLFW_PLATFORM_TLS_STATE
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct GLFWplatform
{
@@ -733,6 +748,7 @@ namespace StgSharp.Graphics
}
[StructLayout(LayoutKind.Sequential)]
public unsafe struct _GLFWmutex
{
// This is defined in platform.h
@@ -741,6 +757,7 @@ namespace StgSharp.Graphics
//public unsafe struct VkAllocationCallbacks { }
[StructLayout(LayoutKind.Sequential)]
internal unsafe struct VkExtensionProperties
{
char[] extensionName = new char[256];
@@ -751,6 +768,7 @@ namespace StgSharp.Graphics
}
}
[StructLayout(LayoutKind.Sequential)]
internal unsafe struct _GLFWerror
{
IntPtr next;