daily update on 20231016 by nitload youmu, vao,vbo,ebo struct added

This commit is contained in:
Nitload
2023-10-17 01:22:30 +08:00
parent 6c3349f5a2
commit 614fabe26c
135 changed files with 28619 additions and 5432 deletions
+28 -1
View File
@@ -6,7 +6,7 @@ namespace StgSharp.Graphics
using _glfw = _GLFWlibrary;
public static unsafe partial class GLFW
internal static unsafe class GLFW
{
internal static _glfw glfw = new _glfw();
@@ -2045,4 +2045,31 @@ namespace StgSharp.Graphics
#endregion
}
public enum ShaderType : int
{
FRAGMENT = 0x8B30,
VERTEX = 0x8B31
}
public enum BufferType : int
{
ARRAY_BUFFER = 0x8892,
ELEMENT_ARRAY_BUFFER = 0x8893,
ARRAY_BUFFER_BINDING = 0x8894
}
public enum BufferReadType : int
{
STREAM_DRAW = 0x88E0,
STREAM_READ = 0x88E1,
STREAM_COPY = 0x88E2,
STATIC_DRAW = 0x88E4,
STATIC_READ = 0x88E5,
STATIC_COPY = 0x88E6,
DYNAMIC_DRAW = 0x88E8,
DYNAMIC_READ = 0x88E9,
DYNAMIC_COPY = 0x88EA
}
}
@@ -1,13 +0,0 @@
using System.Runtime.InteropServices;
namespace StgSharp.Graphics.GL
{
[StructLayout(LayoutKind.Sequential)]
internal struct shaderObject
{
uint VBO;
uint VAO;
uint shaderProgram;
}
}