X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbatch.cpp;h=f2a57bcf2fa2ad4f1ea1f4f6c90a17ab85d8cf3f;hb=d653d25b548070c688e40c052730d63345ce70c9;hp=df4e2fb828e0102989abd2ddacb069f59a33d3a9;hpb=cea3c333797cadd9629aefaa5b82243173a02d16;p=libs%2Fgl.git diff --git a/source/batch.cpp b/source/batch.cpp index df4e2fb8..f2a57bcf 100644 --- a/source/batch.cpp +++ b/source/batch.cpp @@ -5,8 +5,9 @@ Copyright © 2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#define GL_GLEXT_PROTOTYPES #include "batch.h" +#include "extension.h" +#include "vertexarray.h" using namespace std; @@ -42,7 +43,7 @@ void Batch::append(const vector &ind) 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]); }