[Feat] (MG_Impl/RenderState): Implement some RenderState GL functions.

This commit is contained in:
BZLZHH
2025-10-03 13:16:42 +08:00
parent f7df90447b
commit e77b01ac84
14 changed files with 519 additions and 80 deletions
@@ -22,7 +22,7 @@ namespace MobileGL {
Unknown = -1
};
enum class DepthFunc {
enum class DepthTestFunc {
Never,
Less,
Equal,
@@ -31,7 +31,7 @@ namespace MobileGL {
NotEqual,
GreaterEqual,
Always,
DepthFuncCount,
DepthTestFuncCount,
Unknown = -1
};
@@ -128,8 +128,8 @@ namespace MobileGL {
BlendFactor& dstAlpha) const;
// Depth
void SetDepthFunc(DepthFunc func);
DepthFunc GetDepthFunc() const;
void SetDepthFunc(DepthTestFunc func);
DepthTestFunc GetDepthFunc() const;
void SetDepthMask(Bool flag);
Bool GetDepthMask() const;
@@ -164,7 +164,7 @@ namespace MobileGL {
// Depth
Bool m_depthTestEnabled = false;
DepthFunc m_depthFunc = DepthFunc::Less;
DepthTestFunc m_depthFunc = DepthTestFunc::Less;
Bool m_depthMask = true;
// Color Mask