mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibSoftGPU: Remove OpenGL type for alpha test func
Replaces the OpenGL enum used for setting the alpha test func in RasterizerOptions with out own enum.
This commit is contained in:
parent
7d49015403
commit
40bd73bdef
Notes:
sideshowbarker
2024-07-17 22:15:42 +09:00
Author: https://github.com/sunverwerth
Commit: 40bd73bdef
Pull-request: https://github.com/SerenityOS/serenity/pull/11288
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta
3 changed files with 53 additions and 10 deletions
|
@ -26,12 +26,23 @@
|
|||
|
||||
namespace SoftGPU {
|
||||
|
||||
enum class AlphaTestFunction {
|
||||
Never,
|
||||
Always,
|
||||
Less,
|
||||
LessOrEqual,
|
||||
Equal,
|
||||
NotEqual,
|
||||
GreaterOrEqual,
|
||||
Greater,
|
||||
};
|
||||
|
||||
struct RasterizerOptions {
|
||||
bool shade_smooth { true };
|
||||
bool enable_depth_test { false };
|
||||
bool enable_depth_write { true };
|
||||
bool enable_alpha_test { false };
|
||||
GLenum alpha_test_func { GL_ALWAYS };
|
||||
AlphaTestFunction alpha_test_func { AlphaTestFunction::Always };
|
||||
float alpha_test_ref_value { 0 };
|
||||
bool enable_blending { false };
|
||||
GLenum blend_source_factor { GL_ONE };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue