daily update on 20240209 by nitload youmu

This commit is contained in:
Nitload
2024-02-09 23:31:33 +08:00
parent 6fe6b3b3cf
commit 8391569482
159 changed files with 948 additions and 2431 deletions
+4 -5
View File
@@ -8,11 +8,10 @@ namespace StgSharp.Graphics
public unsafe class VertexArray : IBufferObject
{
internal VertexArray(uint n, IglFunc gl)
internal VertexArray(int n, IglFunc gl)
{
_bufferHandle = new glHandle((int)n);
GL = gl;
GL.GenVertexArrays(n, _bufferHandle);
_bufferHandle = GL.GenVertexArrays(n);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -24,11 +23,11 @@ namespace StgSharp.Graphics
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void BindNull()
{
GL.BindVertexArray(0);
GL.BindVertexArray(glHandle.Alloc(0));
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetVertexAttribute(uint index, int vertexLength, Type dataType, bool isNomalized, uint stride, int pointer)
public void SetVertexAttribute(uint index, int vertexLength, TypeCode dataType, bool isNomalized, uint stride, int pointer)
{
GL.SetVertexAttribute(
index, vertexLength, dataType,