[Feat] (...): Implement scissor box in frontend and backend.

This commit is contained in:
BZLZHH committed 2025-11-01 16:40:38 +08:00
1 parent 708db4b5eb
commit bcb947235d
7 files changed
+64 -30

No files matched your search

@@ -44,7 +44,14 @@ namespace MobileGL {
}
void Scissor_State(GLint x, GLint y, GLsizei width, GLsizei height) {
// TODO: implement
if (width < 0 || height < 0) {
MG_State::pGLContext->RecordError(
ErrorCode::InvalidValue, MakeShared<GenericErrorInfo>("MG_Impl/GLImpl", "Scissor_State",
"Width abd height must be non-negative."));
return;
}
MG_State::pGLContext->SetScissorBox(IntVec4(x, y, width, height));
}
void SampleCoverage_State(GLfloat value, GLboolean invert) {