[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
@@ -222,6 +222,17 @@ namespace MobileGL {
return m_parameters.ClearDepth;
}
void RenderState::SetClearStencil(Int stencil) {
if (m_parameters.ClearStencil == stencil) return;
m_parameters.ClearStencil = stencil;
++m_version;
}
Int RenderState::GetClearStencil() const {
return m_parameters.ClearStencil;
}
// -------------------- Pixel Store --------------------
void RenderState::SetPixelStoreParam(PixelStoreParam param, Int value) {
#define SET_PIXEL_STORE_PARAM(paramNameHead, paramNameTail, val) \