daily update on 20240209 by nitload youmu
This commit is contained in:
@@ -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]; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user