LibGL: Add back face culling functions

Adds all needed functions to support back face culling
and implements back face culling in the SoftwareGLContext.
This commit is contained in:
Stephan Unverwerth
2021-04-24 12:09:56 +02:00
committed by Andreas Kling
parent eff3c8a954
commit e6c0600499
5 changed files with 112 additions and 0 deletions

View File

@@ -10,6 +10,26 @@
extern GL::GLContext* g_gl_context;
void glEnable(GLenum cap)
{
g_gl_context->gl_enable(cap);
}
void glDisable(GLenum cap)
{
g_gl_context->gl_disable(cap);
}
void glFrontFace(GLenum mode)
{
g_gl_context->gl_front_face(mode);
}
void glCullFace(GLenum mode)
{
g_gl_context->gl_cull_face(mode);
}
void glClear(GLbitfield mask)
{
g_gl_context->gl_clear(mask);