massive rewrite

This commit is contained in:
Lauchmelder 2021-12-24 14:20:53 +01:00
parent 4c1c151422
commit 5811d3676a
18 changed files with 442 additions and 151 deletions

View file

@ -0,0 +1,10 @@
#include <lol/buffers/ElementBuffer.hpp>
namespace lol
{
ElementBuffer::ElementBuffer(size_t count, unsigned int* elements, Usage usage) :
Buffer(BufferType::ElementArray), count(count)
{
glBufferData(NATIVE(type), count * sizeof(unsigned int), elements, NATIVE(usage));
}
}