Renamed VertexBufferArrayHandle.cs

This commit is contained in:
Harrison Deng 2020-02-20 16:07:18 -05:00
parent 9a9afd52b2
commit 8f327f30e3

View File

@ -1,10 +1,10 @@
using System;
using OpenTK.Graphics.OpenGL;
namespace RecrownedGTK.Graphics {
public class VertexBufferHandle : IDisposable {
public class VertexBufferArrayHandle : IDisposable {
private bool disposed;
private int handle;
public VertexBufferHandle() {
public VertexBufferArrayHandle() {
handle = GL.GenBuffer();
}
public void Bind() {
@ -25,7 +25,7 @@ namespace RecrownedGTK.Graphics {
GL.DeleteBuffer(handle);
disposed = true;
}
~VertexBufferHandle() {
~VertexBufferArrayHandle() {
Dispose(false);
}
}