New IO structure, unexpexted error in C code

This commit is contained in:
Nitload
2023-06-22 03:33:24 +08:00
parent 50b4965e54
commit ee8132c149
172 changed files with 1344 additions and 4023 deletions
+7 -11
View File
@@ -1,15 +1,11 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
namespace StgSharp.Graphics
{
//rename types in style of GLFW
using GLFWbool = Boolean;
using _glfw = _GLFWlibrary;
//strucs defined in glfw3.h
@@ -96,7 +92,7 @@ namespace StgSharp.Graphics
int refreshRate;
}
public unsafe struct GLFWgammaramp
public unsafe struct GLFWgammaramp
{
/*! An array of value describing the response of the red channel.
@@ -113,7 +109,7 @@ namespace StgSharp.Graphics
uint size;
}
public unsafe struct GLFWimage
public unsafe struct GLFWimage
{
/*! The width, in pixels, of this image.
@@ -127,7 +123,7 @@ namespace StgSharp.Graphics
byte* pixels;
}
public struct GLFWgamepadstate
public struct GLFWgamepadstate
{
/*! The states of each [gamepad button](@ref gamepad_buttons), `GLFW_PRESS`
@@ -144,7 +140,7 @@ namespace StgSharp.Graphics
}
}
public unsafe struct GLFWallocator
public unsafe struct GLFWallocator
{
//GLFWallocatefun allocate;
IntPtr allocate;
@@ -233,7 +229,7 @@ namespace StgSharp.Graphics
// GLFW_PLATFORM_CURSOR_STATE;
}
public unsafe struct GLFWerror
public unsafe struct GLFWerror
{
//_GLFWerror* next;
@@ -356,7 +352,7 @@ namespace StgSharp.Graphics
}
}
public unsafe struct GLFWfbconfig
public unsafe struct GLFWfbconfig
{
int redBits;
@@ -767,7 +763,7 @@ namespace StgSharp.Graphics
}
[StructLayout(LayoutKind.Explicit,Size = 16)]
[StructLayout(LayoutKind.Explicit, Size = 16)]
public struct uintptr_t
{
[FieldOffset(0)]