mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +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
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