#include "batch.h"
#include "extension.h"
-#include "version_1_2.h"
+#include "vertexarray.h"
using namespace std;
type(t),
min_index(0),
max_index(0)
-{
- require_version(1, 2);
-}
+{ }
Batch &Batch::append(uint i)
{
void Batch::draw() const
{
- glDrawRangeElements(type, min_index, max_index, indices.size(), GL_UNSIGNED_INT, &indices[0]);
+ draw_range_elements(type, min_index, max_index, indices.size(), &indices[0]);
}