mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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:
committed by
Andreas Kling
parent
eff3c8a954
commit
e6c0600499
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user