summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLLights.cpp
blob: cdbcd16e26ed1ed9a19f0b818bf6e842f8d78090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
 * Copyright (c) 2021, Jelle Raaijmakers <jelle@gmta.nl>
 *
 * SPDX-License-Identifier: BSD-2-Clause
 */

#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 glMaterialf(GLenum face, GLenum pname, GLfloat param)
{
    VERIFY(face == GL_SHININESS);
    g_gl_context->gl_materialv(face, pname, &param);
}

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);
}