1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:07:35 +00:00

LibGL: Add stubs for glMaterialf and glMaterialfv

This commit is contained in:
Jelle Raaijmakers 2021-12-01 16:10:17 +01:00 committed by Andreas Kling
parent 4eb6295a57
commit 9dbc8d7e3c
5 changed files with 66 additions and 1 deletions

View file

@ -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, &param);
}
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);