24 #ifndef __HDLGEBO_INCLUDE__
25 #define __HDLGEBO_INCLUDE__
48 static bool binding[4];
49 static bool mapping[4];
55 static int getIDTarget(GLenum target);
59 HdlGeBO(GLsizeiptr _size, GLenum infoTarget, GLenum infoUsage);
60 HdlGeBO(GLuint
id, GLsizeiptr _size, GLenum infoTarget, GLenum infoUsage);
63 GLsizeiptr getSize(
void);
65 GLenum getTarget(
void);
66 GLenum getUsage(
void);
67 void bind(GLenum target = GL_NONE);
68 void* map(GLenum access = GL_NONE, GLenum target = GL_NONE);
69 void write(
const void* data);
70 void subWrite(
const void* data, GLsizeiptr size, GLintptr offset);
73 static void unbind(GLenum target);
74 static void unmap(GLenum target);
75 static bool isBound(GLenum target);
76 static bool isMapped(GLenum target);
Definition: Component.hpp:32
Object handle for OpenGL Buffer Object (VBO, PBO, VAO, ...).
Definition: HdlGeBO.hpp:40
OpenGL includes and tools.