mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
LibGL: Flesh out glMaterialf{v}
These two functions have been turned from stubs into actually doing something. They now set the correspondingmaterial data member based on the value passed into the `pname`argument. Co-authored-by: Stephan Unverwerth <s.unverwerth@serenityos.org>
This commit is contained in:
parent
9118b0d164
commit
92373ab0b6
7 changed files with 138 additions and 48 deletions
|
@ -51,12 +51,12 @@ void glLightModeli(GLenum pname, GLint param)
|
|||
|
||||
void glMaterialf(GLenum face, GLenum pname, GLfloat param)
|
||||
{
|
||||
g_gl_context->gl_materialv(face, pname, ¶m);
|
||||
g_gl_context->gl_materialf(face, pname, param);
|
||||
}
|
||||
|
||||
void glMaterialfv(GLenum face, GLenum pname, GLfloat const* params)
|
||||
{
|
||||
g_gl_context->gl_materialv(face, pname, params);
|
||||
g_gl_context->gl_materialfv(face, pname, params);
|
||||
}
|
||||
|
||||
void glShadeModel(GLenum mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue