recrownedgtk/RecrownedGTK/Graphics/Render/Batch.cs

18 lines
510 B
C#
Raw Normal View History

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