massive rewrite
This commit is contained in:
parent
4c1c151422
commit
5811d3676a
18 changed files with 442 additions and 151 deletions
10
src/buffers/ElementBuffer.cpp
Normal file
10
src/buffers/ElementBuffer.cpp
Normal 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));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue