New batching structure base files.

This commit is contained in:
2020-02-20 04:17:39 -05:00
parent 7512f66cdb
commit 171c27ab80
3 changed files with 44 additions and 31 deletions

View File

@@ -1,14 +1,15 @@
using System;
namespace RecrownedGTK.Graphics.Render {
public class TextureBatch {
public class Batch {
private bool begun;
public TextureBatch() {
//TODO Finish batch.
public Batch() {
//TODO: Finish this class.
}
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;