ladybird/Userland/Libraries/LibGL/GLBlend.cpp
Stephan Unverwerth 1bd754882d LibGL: Implement glAlphaFunc()
This implements glAlphaFunc() for setting alpha test func and ref value
and also allows enabling and disabling GL_ALPHA_TEST
2021-05-16 19:27:23 +02:00

20 lines
407 B
C++

/*
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@gmx.de>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GL/gl.h"
#include "GLContext.h"
extern GL::GLContext* g_gl_context;
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);
}