summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLLights.cpp
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-01-10 02:29:37 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-11 23:47:42 +0100
commit6363797e80a4a639f81783401c18fac552f4e75a (patch)
tree746ba06c58485673f4a10592143485d1066b6b41 /Userland/Libraries/LibGL/GLLights.cpp
parente2f79c8b5f337225b65a508ec4fe0edfde3a3c67 (diff)
downloadserenity-6363797e80a4a639f81783401c18fac552f4e75a.zip
LibGL: Implement `glLightModeli`
Diffstat (limited to 'Userland/Libraries/LibGL/GLLights.cpp')
-rw-r--r--Userland/Libraries/LibGL/GLLights.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLLights.cpp b/Userland/Libraries/LibGL/GLLights.cpp
index 70d0c777db..e30aeb191b 100644
--- a/Userland/Libraries/LibGL/GLLights.cpp
+++ b/Userland/Libraries/LibGL/GLLights.cpp
@@ -45,6 +45,11 @@ void glLightModelfv(GLenum pname, GLfloat const* params)
}
}
+void glLightModeli(GLenum pname, GLint param)
+{
+ g_gl_context->gl_light_model(pname, param, 0.0f, 0.0f, 0.0f);
+}
+
void glMaterialf(GLenum face, GLenum pname, GLfloat param)
{
g_gl_context->gl_materialv(face, pname, &param);