Untitled Game engine no.5
1.0
|
#include <GLBuffer.hpp>
Public Member Functions | |
GLVertexBuffer (std::size_t size) | |
void | Bind () override |
Binds this vertex buffer for drawing. | |
void | Unbind () override |
Binds nothing for drawing. | |
void | Load (float verts[], std::size_t size) override |
size_t | GetSize () override |
Public Member Functions inherited from Engine::VertexBuffer | |
VertexBuffer () | |
Constructor. | |
virtual | ~VertexBuffer () |
Constructor. | |
OpenGL version of a VertexBuffer
|
inlineoverridevirtual |
Loads vertices into this buffer
verts | the vertices for this buffer |
size | the size of the array we are loading |
Implements Engine::VertexBuffer.