|
CGVIS Utils
|
Thin RAII wrapper for an OpenGL buffer object with upload/binding helpers. More...
#include <vector>#include <GL/glew.h>#include <GLFW/glfw3.h>Go to the source code of this file.
Classes | |
| class | GLBuffer |
Thin RAII wrapper for an OpenGL buffer object with upload/binding helpers.
Encapsulates creation/destruction of a generic GL buffer (e.g., VBO/EBO/SSBO) and provides utilities to upload data (floats or unsigned ints), bind it, and describe vertex attributes. The buffer target is chosen at construction (e.g., GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER).