diff options
author | Jelle Raaijmakers <jelle@gmta.nl> | 2022-01-09 23:01:19 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-09 23:23:01 +0100 |
commit | 57b1dcbec9d18344dc0f2f12a939ed4d24b6ca0b (patch) | |
tree | d97953fe5556669d22569a32910e590ff3a42d2d /Userland | |
parent | 6e64ad829a977d4072eef6b96f7c2b88bf00c61c (diff) | |
download | serenity-57b1dcbec9d18344dc0f2f12a939ed4d24b6ca0b.zip |
LibGL: Add stub for `glColorMaterial`
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGL/GL/gl.h | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGL/GLLights.cpp | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h index fa03be7797..4b28fd927f 100644 --- a/Userland/Libraries/LibGL/GL/gl.h +++ b/Userland/Libraries/LibGL/GL/gl.h @@ -461,6 +461,7 @@ GLAPI void glColor4fv(const GLfloat* v); GLAPI void glColor4ub(GLubyte r, GLubyte g, GLubyte b, GLubyte a); GLAPI void glColor4ubv(const GLubyte* v); GLAPI void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); +GLAPI void glColorMaterial(GLenum face, GLenum mode); GLAPI void glDeleteTextures(GLsizei n, const GLuint* textures); GLAPI void glEnd(); GLAPI void glFrustum(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble nearVal, GLdouble farVal); diff --git a/Userland/Libraries/LibGL/GLLights.cpp b/Userland/Libraries/LibGL/GLLights.cpp index 436cd1e6fe..70d0c777db 100644 --- a/Userland/Libraries/LibGL/GLLights.cpp +++ b/Userland/Libraries/LibGL/GLLights.cpp @@ -11,6 +11,12 @@ extern GL::GLContext* g_gl_context; +void glColorMaterial(GLenum face, GLenum mode) +{ + // FIXME: implement + dbgln_if(GL_DEBUG, "glColorMaterial({:#x}, {:#x}): unimplemented", face, mode); +} + void glLightf(GLenum light, GLenum pname, GLfloat param) { // FIXME: implement |