recrownedgtk/RecrownedGTK/Graphics/Render/TextureBatch.cs

17 lines
517 B
C#
Raw Normal View History

2020-02-17 02:44:21 +00:00
using System;
namespace RecrownedGTK.Graphics.Render {
public class TextureBatch {
private bool begun;
public TextureBatch() {
//TODO Finish batch.
}
public void Begin() {
if (begun) throw new InvalidOperationException("This batch has already been started.");
begun = true;
}
public void End() {
if (!begun) throw new InvalidOperationException("The batch has not begun.");
begun = false;
}
}
}