mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +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:
parent
eff3c8a954
commit
e6c0600499
5 changed files with 112 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue