recrownedgtk/RecrownedGTK/Graphics/Render/TextureBatch.cs
Harrison 519d31f2e1 Another restructure with code updates.
Updated RectTextrue.cs, VertexInformation.cs, and IDrawable.cs to properly pass indice information.
2020-02-20 18:07:17 -05:00

34 lines
930 B
C#

using System;
namespace RecrownedGTK.Graphics.Render {
public class TextureBatch : IDisposable {
private bool disposed;
private bool begun;
public TextureBatch() {
//TODO: Finish this class.
}
public void Begin() {
if (begun) throw new InvalidOperationException("This TextureBatch has already been started.");
begun = true;
}
public void End() {
if (!begun) throw new InvalidOperationException("The TextureBatch has not begun.");
begun = false;
}
protected virtual void Dispose(bool disposing) {
if (disposed) return;
if (disposing) {
}
disposed = true;
}
public void Dispose() {
Dispose(true);
GC.SuppressFinalize(this);
}
~TextureBatch() {
Dispose(false);
}
}
}