summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GL
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2021-05-06 23:17:35 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-09 15:58:35 +0200
commita8fc4be47abf93a1e3cf1c190b50ad3d3444907e (patch)
treec1fbb67f2e1afb1ebd95e4c7b45ee07db57087f9 /Userland/Libraries/LibGL/GL
parentd922c2f5f3ec6a2ae2554e7bbbc61fa7c44c076b (diff)
downloadserenity-a8fc4be47abf93a1e3cf1c190b50ad3d3444907e.zip
LibGL: Add supporting code for depth buffer
This adds glClearDepth() and new caps for enabling and disabling the depth buffer with glEnable() and glDisable()
Diffstat (limited to 'Userland/Libraries/LibGL/GL')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index 3c9fa58bd3..05d861c999 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -31,9 +31,11 @@ extern "C" {
// Buffer bits
#define GL_COLOR_BUFFER_BIT 0x0200
+#define GL_DEPTH_BUFFER_BIT 0x0400
// Enable capabilities
#define GL_CULL_FACE 0x0B44
+#define GL_DEPTH_TEST 0x0B71
// Utility
#define GL_VENDOR 0x1F00
@@ -85,6 +87,7 @@ typedef unsigned int GLbitfield;
GLAPI void glBegin(GLenum mode);
GLAPI void glClear(GLbitfield mask);
GLAPI void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+GLAPI void glClearDepth(GLdouble depth);
GLAPI void glColor3f(GLfloat r, GLfloat g, GLfloat b);
GLAPI void glColor4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a);
GLAPI void glColor4fv(const GLfloat* v);