1
Fork 0
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:
Stephan Unverwerth 2021-12-22 22:59:07 +01:00 committed by Brian Gianforcaro
parent 7d49015403
commit 40bd73bdef
3 changed files with 53 additions and 10 deletions

View file

@ -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 };