diff options
Diffstat (limited to 'Userland/Libraries/LibGL/GLLights.cpp')
-rw-r--r-- | Userland/Libraries/LibGL/GLLights.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLLights.cpp b/Userland/Libraries/LibGL/GLLights.cpp index 6aa9c2ab0b..cdbcd16e26 100644 --- a/Userland/Libraries/LibGL/GLLights.cpp +++ b/Userland/Libraries/LibGL/GLLights.cpp @@ -1,5 +1,6 @@ /* * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org> + * Copyright (c) 2021, Jelle Raaijmakers <jelle@gmta.nl> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -22,6 +23,17 @@ void glLightfv(GLenum light, GLenum pname, GLfloat* param) dbgln_if(GL_DEBUG, "glLightfv({}, {}, {}): unimplemented", light, pname, param); } +void glMaterialf(GLenum face, GLenum pname, GLfloat param) +{ + VERIFY(face == GL_SHININESS); + g_gl_context->gl_materialv(face, pname, ¶m); +} + +void glMaterialfv(GLenum face, GLenum pname, GLfloat const* params) +{ + g_gl_context->gl_materialv(face, pname, params); +} + void glShadeModel(GLenum mode) { g_gl_context->gl_shade_model(mode); |