mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:37:46 +00:00
LibGL: Add supporting code for depth buffer
This adds glClearDepth() and new caps for enabling and disabling the depth buffer with glEnable() and glDisable()
This commit is contained in:
parent
d922c2f5f3
commit
a8fc4be47a
6 changed files with 57 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue