cangine
Loading...
Searching...
No Matches
ebo.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5namespace cangine {
12 class EBO {
13 private:
14 unsigned int ID;
15 public:
17 EBO();
22 void update(const std::vector<unsigned int> &indices);
24 void bind();
25 };
26}
Wraps an OpenGL Element Buffer Object (index buffer).
Definition ebo.hpp:12
void bind()
Binds the buffer as the current element array buffer.
Definition ebo.cpp:19
void update(const std::vector< unsigned int > &indices)
Uploads index data to the buffer.
Definition ebo.cpp:9
unsigned int ID
OpenGL buffer object handle.
Definition ebo.hpp:14
EBO()
Generates the underlying OpenGL buffer object.
Definition ebo.cpp:5
Definition audiomanager.cpp:4