1
0
Fork 0
Univerxel/src/client/render/gl/buffer/Vertex.cpp

15 lines
370 B
C++

#include "Vertex.hpp"
using namespace buffer;
Vertex::Vertex(GLenum shape, const unsigned long count, const unsigned long size, const void *data): Abstract(shape) {
setVertices(size, data);
ElementCount = count;
}
uint Vertex::draw(params) {
enableAllAttribs();
glDrawArrays(Shape, 0, ElementCount);
disableAllAttribs();
return ElementCount;
}