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

LibGL: Implement glAlphaFunc()

This implements glAlphaFunc() for setting alpha test func and ref value
and also allows enabling and disabling GL_ALPHA_TEST
This commit is contained in:
Stephan Unverwerth 2021-05-16 16:43:09 +02:00 committed by Andreas Kling
parent b8b8b4b566
commit 1bd754882d
6 changed files with 68 additions and 2 deletions

View file

@ -13,3 +13,8 @@ void glBlendFunc(GLenum sfactor, GLenum dfactor)
{
return g_gl_context->gl_blend_func(sfactor, dfactor);
}
void glAlphaFunc(GLenum func, GLclampf ref)
{
return g_gl_context->gl_alpha_func(func, ref);
}