mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 21:58:31 +09:00
[Feat] (GL_State/RenderState): implement ClearStencil
This commit is contained in:
@@ -721,7 +721,7 @@ namespace MobileGL {
|
||||
*params = 0; // TODO
|
||||
break;
|
||||
case GL_STENCIL_CLEAR_VALUE:
|
||||
*params = 0; // TODO
|
||||
*params = MG_State::pGLContext->GetClearStencil();
|
||||
break;
|
||||
case GL_STENCIL_FAIL:
|
||||
*params = 0; // TODO
|
||||
@@ -922,4 +922,4 @@ namespace MobileGL {
|
||||
return MG_Util::ConvertErrorCodeToGLEnum(errorCode);
|
||||
}
|
||||
} // namespace MG_Impl::GLImpl
|
||||
} // namespace MobileGL
|
||||
} // namespace MobileGL
|
||||
|
||||
@@ -261,7 +261,7 @@ namespace MobileGL {
|
||||
}
|
||||
|
||||
void ClearStencil_State(GLint s) {
|
||||
// TODO: implement
|
||||
MG_State::pGLContext->SetClearStencil(static_cast<Int>(s));
|
||||
}
|
||||
|
||||
void ClearDepth_State(GLclampd depth) {
|
||||
|
||||
Reference in New Issue
Block a user