Distributed under the LGPL
*/
+#include "extension.h"
#include "gl.h"
+#include "version_1_2.h"
#include "vertexarray.h"
#include "vertexbuffer.h"
add("color4", static_cast<void (Loader::*)(float, float, float, float)>(&Loader::color));
}
+
+void array_element(int i)
+{
+ glArrayElement(i);
+}
+
+void draw_arrays(PrimitiveType mode, int first, sizei count)
+{
+ glDrawArrays(mode, first, count);
+}
+
+void draw_elements(PrimitiveType mode, sizei count, DataType type, const void *indices)
+{
+ glDrawElements(mode, count, type, indices);
+}
+
+void draw_range_elements(PrimitiveType mode, uint low, uint high, sizei count, DataType type, const void *indices)
+{
+ static RequireVersion _ver(1, 2);
+ glDrawRangeElements(mode, low, high, count, type, indices);
+}
+
} // namespace GL
} // namespace Msp