CGVIS Utils
Loading...
Searching...
No Matches
GLBuffer.h File Reference

Thin RAII wrapper for an OpenGL buffer object with upload/binding helpers. More...

#include <vector>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
Include dependency graph for GLBuffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GLBuffer

Detailed Description

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).