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