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
@@ -13,7 +13,7 @@ namespace StgSharp.Graphics
_bufferID = new uint[n];
fixed (uint* id = _bufferID)
{
GL.gl->GenVertexArrays(n, id);
GL.gl.GenVertexArrays(n, id);
}
}
@@ -27,21 +27,21 @@ namespace StgSharp.Graphics
public void Bind(int index)
{
GL.gl->BindVertexArray(_bufferID[index]);
GL.gl.BindVertexArray(_bufferID[index]);
}
public void Dispose()
{
fixed (uint* id = _bufferID)
{
GL.gl->DeleteVertexArrays(_bufferID.Length, id);
GL.gl.DeleteVertexArrays(_bufferID.Length, id);
}
}
public void SetVertexAttribute(uint index, int vertexLength, Type dataType, bool isNomalized, int stride, int pointer)
{
GL.gl->VertexAttribPointer(
GL.gl.VertexAttribPointer(
index, vertexLength, InternalIO.GLtype[dataType],
isNomalized,
stride, (void*)pointer);