daily update on 20231113 by nitload youmu, upgrade gl loader complete
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user