mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 07:22:22 +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:
parent
b8b8b4b566
commit
1bd754882d
Notes:
sideshowbarker
2024-07-18 18:01:24 +09:00
Author: https://github.com/sunverwerth
Commit: 1bd754882d
Pull-request: https://github.com/SerenityOS/serenity/pull/7181
6 changed files with 68 additions and 2 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue