mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:37: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
|
@ -474,6 +474,7 @@ 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 glClearDepthf(GLfloat depth);
|
||||
GLAPI void glClearStencil(GLint s);
|
||||
GLAPI void glColor3d(GLdouble r, GLdouble g, GLdouble b);
|
||||
GLAPI void glColor3dv(GLdouble const* v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue