mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:47:35 +00:00
LibGL: Implement glClearDepthf
and store as float
Our API still specifies it as a double, but internally we communicate a float to the rasterizer. Additionally, clamp the value to 0..1 as described in the spec.
This commit is contained in:
parent
36a732e98e
commit
44a3d5c101
4 changed files with 9 additions and 3 deletions
|
@ -50,6 +50,11 @@ void glClearDepth(GLdouble depth)
|
|||
g_gl_context->gl_clear_depth(depth);
|
||||
}
|
||||
|
||||
void glClearDepthf(GLfloat depth)
|
||||
{
|
||||
g_gl_context->gl_clear_depth(static_cast<double>(depth));
|
||||
}
|
||||
|
||||
void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
|
||||
{
|
||||
g_gl_context->gl_color_mask(red, green, blue, alpha);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue