Distributed under the LGPL
*/
-#define GL_GLEXT_PROTOTYPES
#include "batch.h"
+#include "extension.h"
+#include "vertexarray.h"
using namespace std;
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]);
+}
+
+void Batch::draw_with_buffer(unsigned offset) const
+{
+ draw_range_elements(type, min_index, max_index, indices.size(), (unsigned *)0+offset);
}