[Feat] (GL_State/RenderState): implement ClearStencil

This commit is contained in:
2026-02-17 08:17:26 +08:00
parent 781bda2573
commit f8f3d6e657
6 changed files with 30 additions and 6 deletions
@@ -154,6 +154,7 @@ namespace MobileGL {
// Clear State
FloatVec4 ClearColor = FloatVec4(0.0f, 0.0f, 0.0f, 1.0f);
Float ClearDepth = 1.0f;
Int ClearStencil = 0;
// Cull Face
Bool CullFaceEnabled = false;
@@ -207,6 +208,8 @@ namespace MobileGL {
const FloatVec4& GetClearColor() const;
void SetClearDepth(Float depth);
Float GetClearDepth() const;
void SetClearStencil(Int stencil);
Int GetClearStencil() const;
// Pixel Store
void SetPixelStoreParam(PixelStoreParam param, Int value);
@@ -231,4 +234,4 @@ namespace MobileGL {
};
} // namespace GLState
} // namespace MG_State
} // namespace MobileGL
} // namespace MobileGL