daily update on 20231113 by nitload youmu, upgrade gl loader complete

This commit is contained in:
Nitload
2023-11-14 02:51:12 +08:00
parent dac5f2455b
commit ae804553ce
84 changed files with 5492 additions and 98112 deletions
+4 -4
View File
@@ -16,7 +16,7 @@ namespace StgSharp.Graphics
_bufferID = new uint[n];
fixed (uint* id = _bufferID)
{
GL.gl->GenBuffers(n, id);
GL.gl.GenBuffers(n, id);
}
}
@@ -27,14 +27,14 @@ namespace StgSharp.Graphics
public void Bind(int index)
{
GL.gl->BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
GL.gl.BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
}
public void SetData<T>(int index, T[] bufferArray, BufferUsage usage)
where T : struct, IConvertible
{
GL.gl->BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
GL.gl.BindBuffer(GLconst.ELEMENT_ARRAY_BUFFER, _bufferID[index]);
GL.SetBufferData(BufferType.ELEMENT_ARRAY_BUFFER, bufferArray, usage);
}
@@ -42,7 +42,7 @@ namespace StgSharp.Graphics
{
fixed (uint* id = _bufferID)
{
GL.gl->DeleteBuffers(1, id);
GL.gl.DeleteBuffers(1, id);
}
}