Distributed under the LGPL
*/
-#define GL_GLEXT_PROTOTYPES
#include "batch.h"
+#include "extension.h"
+#include "version_1_2.h"
using namespace std;
type(t),
min_index(0),
max_index(0)
-{ }
+{
+ require_version(1, 2);
+}
-void Batch::append(uint i)
+Batch &Batch::append(uint i)
{
if(indices.empty())
min_index=max_index=i;
max_index=max(max_index, i);
}
indices.push_back(i);
+
+ return *this;
}
void Batch::append(const vector<uint> &ind)