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:
parent
4eb6295a57
commit
9dbc8d7e3c
5 changed files with 66 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue