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

LibGL: Implement glLightModeliv

This commit is contained in:
Jesse Buhagiar 2022-01-21 10:16:17 +11:00 committed by Andreas Kling
parent 68e50759b4
commit 909ec41196
2 changed files with 13 additions and 0 deletions

View file

@ -43,6 +43,18 @@ void glLightModelfv(GLenum pname, GLfloat const* params)
}
}
void glLightModeliv(GLenum pname, GLint const* params)
{
switch (pname) {
case GL_LIGHT_MODEL_AMBIENT:
g_gl_context->gl_light_model(pname, params[0], params[1], params[2], params[3]);
break;
default:
g_gl_context->gl_light_model(pname, params[0], 0.0f, 0.0f, 0.0f);
break;
}
}
void glLightModeli(GLenum pname, GLint param)
{
g_gl_context->gl_light_model(pname, param, 0.0f, 0.0f, 0.0f);