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

LibGL: Implement glShadeModel()

This turns off interpolation of vertex colors when GL_FLAT is selected.
This commit is contained in:
Stephan Unverwerth 2021-05-16 14:05:13 +02:00 committed by Andreas Kling
parent 26953c2be1
commit da57563c1c
7 changed files with 51 additions and 6 deletions

View file

@ -79,6 +79,10 @@ extern "C" {
#define GL_COMPILE 0x1300
#define GL_COMPILE_AND_EXECUTE 0x1301
// Lighting related defines
#define GL_FLAT 0x1D00
#define GL_SMOOTH 0x1D01
// More blend factors
#define GL_CONSTANT_COLOR 0x8001
#define GL_ONE_MINUS_CONSTANT_COLOR 0x8002
@ -147,6 +151,7 @@ GLAPI void glNewList(GLuint list, GLenum mode);
GLAPI void glFlush();
GLAPI void glFinish();
GLAPI void glBlendFunc(GLenum sfactor, GLenum dfactor);
GLAPI void glShadeModel(GLenum mode);
#ifdef __cplusplus
}