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
@@ -11,19 +11,18 @@ namespace StgSharp.Graphics
/// <summary>
/// A collecion of handle to Element Buffer Object in OpenGL.
/// Each <see cref="uint"/> value indexed from instance of this class this
/// Each <see langword="int"/> value indexed from instance of this class this
/// is the only handle to one Element Buffer Object.
/// </summary>
public unsafe class ElementBuffer : IBufferObject
{
internal ElementBuffer(uint n, IglFunc gl)
internal ElementBuffer(int n, IglFunc gl)
{
_bufferHandle = new glHandle((int)n);
GL = gl;
GL.GenBuffers(n, _bufferHandle);
_bufferHandle = GL.GenBuffers(n);
}
public uint this[int n]
public glHandle this[int n]
{
get { return _bufferHandle[n]; }
}