mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +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
|
@ -40,6 +40,11 @@ void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
|
|||
g_gl_context->gl_clear_color(red, green, blue, alpha);
|
||||
}
|
||||
|
||||
void glClearDepth(GLdouble depth)
|
||||
{
|
||||
g_gl_context->gl_clear_depth(depth);
|
||||
}
|
||||
|
||||
GLubyte* glGetString(GLenum name)
|
||||
{
|
||||
return g_gl_context->gl_get_string(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue