1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:27:45 +00:00

LibGL: Add simple implementation of buffer objects

For now, buffers are only implemented on the LibGL side, however in the
future buffer objects should be stored in LibGPU.
This commit is contained in:
cflip 2022-11-13 15:08:24 -07:00 committed by Andreas Kling
parent 892006218a
commit 59df2e62ee
6 changed files with 170 additions and 10 deletions

View file

@ -587,6 +587,20 @@ extern "C" {
#define GL_CLIP_PLANE4 0x3004
#define GL_CLIP_PLANE5 0x3005
// Buffer objects
#define GL_ARRAY_BUFFER 0x8892
#define GL_ELEMENT_ARRAY_BUFFER 0x8893
#define GL_STREAM_DRAW 0x88e0
#define GL_STREAM_READ 0x88e1
#define GL_STREAM_COPY 0x88e2
#define GL_STATIC_DRAW 0x88e4
#define GL_STATIC_READ 0x88e5
#define GL_STATIC_COPY 0x88e6
#define GL_DYNAMIC_DRAW 0x88e8
#define GL_DYNAMIC_READ 0x88e9
#define GL_DYNAMIC_COPY 0x88ea
GLAPI void glBegin(GLenum mode);
GLAPI void glClear(GLbitfield mask);
GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);