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