summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2021-12-01 13:34:45 +0100
committerAndreas Kling <kling@serenityos.org>2021-12-12 21:51:08 +0100
commitd38c4ac8b5438aefd97adba91c77748fb1565d68 (patch)
tree71b3b7634c509acdf94fed03e3bc507fbdec5049 /Userland/Libraries/LibGL
parent7ac8cd057e8acd25c2e6405371f1af891d19c809 (diff)
downloadserenity-d38c4ac8b5438aefd97adba91c77748fb1565d68.zip
LibGL: Add stubs for `glLightf` and `glLightfv`
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r--Userland/Libraries/LibGL/GL/gl.h2
-rw-r--r--Userland/Libraries/LibGL/GLLights.cpp13
2 files changed, 15 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GL/gl.h b/Userland/Libraries/LibGL/GL/gl.h
index 36646ae92a..23f7e1bd9a 100644
--- a/Userland/Libraries/LibGL/GL/gl.h
+++ b/Userland/Libraries/LibGL/GL/gl.h
@@ -429,6 +429,8 @@ GLAPI void glFogf(GLenum pname, GLfloat param);
GLAPI void glFogi(GLenum pname, GLint param);
GLAPI void glPixelStorei(GLenum pname, GLint param);
GLAPI void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
+GLAPI void glLightf(GLenum light, GLenum pname, GLfloat param);
+GLAPI void glLightfv(GLenum light, GLenum pname, GLfloat* param);
#ifdef __cplusplus
}
diff --git a/Userland/Libraries/LibGL/GLLights.cpp b/Userland/Libraries/LibGL/GLLights.cpp
index 24fb654cfb..6aa9c2ab0b 100644
--- a/Userland/Libraries/LibGL/GLLights.cpp
+++ b/Userland/Libraries/LibGL/GLLights.cpp
@@ -6,9 +6,22 @@
#include "GL/gl.h"
#include "GLContext.h"
+#include <AK/Debug.h>
extern GL::GLContext* g_gl_context;
+void glLightf(GLenum light, GLenum pname, GLfloat param)
+{
+ // FIXME: implement
+ dbgln_if(GL_DEBUG, "glLightf({}, {}, {}): unimplemented", light, pname, param);
+}
+
+void glLightfv(GLenum light, GLenum pname, GLfloat* param)
+{
+ // FIXME: implement
+ dbgln_if(GL_DEBUG, "glLightfv({}, {}, {}): unimplemented", light, pname, param);
+}
+
void glShadeModel(GLenum mode)
{
g_gl_context->gl_shade_model(mode);