mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:17:45 +00:00
LibGL: Implement glShadeModel()
This turns off interpolation of vertex colors when GL_FLAT is selected.
This commit is contained in:
parent
26953c2be1
commit
da57563c1c
7 changed files with 51 additions and 6 deletions
15
Userland/Libraries/LibGL/GLLights.cpp
Normal file
15
Userland/Libraries/LibGL/GLLights.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@gmx.de>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include "GL/gl.h"
|
||||
#include "GLContext.h"
|
||||
|
||||
extern GL::GLContext* g_gl_context;
|
||||
|
||||
void glShadeModel(GLenum mode)
|
||||
{
|
||||
g_gl_context->gl_shade_model(mode);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue