summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGL/GLContext.h
diff options
context:
space:
mode:
authorStephan Unverwerth <s.unverwerth@gmx.de>2021-05-16 16:43:09 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-16 19:27:23 +0200
commit1bd754882ddea4d6785879118dc032098e83e679 (patch)
treea00693145fb81700f014b81d4e6ee0d245746fc4 /Userland/Libraries/LibGL/GLContext.h
parentb8b8b4b5662bbe3c1b49cec09d6b782b6da10706 (diff)
downloadserenity-1bd754882ddea4d6785879118dc032098e83e679.zip
LibGL: Implement glAlphaFunc()
This implements glAlphaFunc() for setting alpha test func and ref value and also allows enabling and disabling GL_ALPHA_TEST
Diffstat (limited to 'Userland/Libraries/LibGL/GLContext.h')
-rw-r--r--Userland/Libraries/LibGL/GLContext.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/GLContext.h b/Userland/Libraries/LibGL/GLContext.h
index 084c4db5da..68cfe60f29 100644
--- a/Userland/Libraries/LibGL/GLContext.h
+++ b/Userland/Libraries/LibGL/GLContext.h
@@ -51,6 +51,7 @@ public:
virtual void gl_finish() = 0;
virtual void gl_blend_func(GLenum src_factor, GLenum dst_factor) = 0;
virtual void gl_shade_model(GLenum mode) = 0;
+ virtual void gl_alpha_func(GLenum func, GLclampf ref) = 0;
virtual void present() = 0;
};