diff --git a/src/core/vbo.cpp b/src/core/vbo.cpp index 43ab9d4..3683fef 100755 --- a/src/core/vbo.cpp +++ b/src/core/vbo.cpp @@ -2,7 +2,7 @@ #include -VBO::VBO(const void *data, std::size_t size) +core::VBO::VBO(const void *data, std::size_t size) { // Generate a unique OpenGL buffer handle (ID). glGenBuffers(1, &id); @@ -12,20 +12,20 @@ VBO::VBO(const void *data, std::size_t size) glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW); } -VBO::~VBO() +core::VBO::~VBO() { // delete the OpenGL buffer handle glDeleteBuffers(1, &this->id); } -void VBO::bind() +void core::VBO::bind() { // Bind this buffer to the GL_ARRAY_BUFFER target. // GL_ARRAY_BUFFER tells opengl this buffer contains vertices glBindBuffer(GL_ARRAY_BUFFER, this->id); } -void VBO::unbind() +void core::VBO::unbind() { // bind the buffer to NULL handle (remove old id) glBindBuffer(GL_ARRAY_BUFFER, 0);