diff options
author | Stephan Unverwerth <s.unverwerth@gmx.de> | 2021-05-16 16:43:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-16 19:27:23 +0200 |
commit | 1bd754882ddea4d6785879118dc032098e83e679 (patch) | |
tree | a00693145fb81700f014b81d4e6ee0d245746fc4 /Userland/Libraries/LibGL/SoftwareRasterizer.h | |
parent | b8b8b4b5662bbe3c1b49cec09d6b782b6da10706 (diff) | |
download | serenity-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/SoftwareRasterizer.h')
-rw-r--r-- | Userland/Libraries/LibGL/SoftwareRasterizer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGL/SoftwareRasterizer.h b/Userland/Libraries/LibGL/SoftwareRasterizer.h index 10fb57d963..62c7e66a73 100644 --- a/Userland/Libraries/LibGL/SoftwareRasterizer.h +++ b/Userland/Libraries/LibGL/SoftwareRasterizer.h @@ -18,6 +18,9 @@ namespace GL { struct RasterizerOptions { bool shade_smooth { true }; bool enable_depth_test { false }; + bool enable_alpha_test { false }; + GLenum alpha_test_func { GL_ALWAYS }; + float alpha_test_ref_value { 0 }; bool enable_blending { false }; GLenum blend_source_factor { GL_ONE }; GLenum blend_destination_factor { GL_ONE }; |