mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +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:
parent
892006218a
commit
59df2e62ee
6 changed files with 170 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue