mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibGL: Add stubs for glMaterialf
and glMaterialfv
This commit is contained in:
parent
4eb6295a57
commit
9dbc8d7e3c
Notes:
sideshowbarker
2024-07-17 22:51:46 +09:00
Author: https://github.com/gmta
Commit: 9dbc8d7e3c
Pull-request: https://github.com/SerenityOS/serenity/pull/11154
Reviewed-by: https://github.com/sunverwerth ✅
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