[Feat|Fix] (...): Emulate EGL. Emulate glClear and glClearColor.

Signed-off-by: BZLZHH <admin@bzlzhh.top>
This commit is contained in:
BZLZHH
2025-03-30 12:07:14 +08:00
parent 8374a88731
commit 5af3057456
17 changed files with 2647 additions and 759 deletions
+3 -3
View File
@@ -19,11 +19,11 @@ namespace MG_GL::Getter {
const std::string GetMGName() {
#if BACKEND_TYPE == BACKEND_VULKAN
return "MobileGLUVK";
return "MobileGluvk";
#elif BACKEND_TYPE == BACKEND_METAL
return "MobileGLUMTL";
return "MobileGlumtl";
#elif BACKEND_TYPE == BACKEND_GLES
return "MobileGLUES";
return "MobileGlues";
#else
return "<Unknown MobileGL Version>";
#endif
+8
View File
@@ -163,8 +163,16 @@ namespace MG_GL::GL {
case GL_MINOR_VERSION:
(*params) = MG_Global::GL::GLVersionMinor;
break;
case GL_MAX_TEXTURE_SIZE:
// TODO: Get real GL_MAX_TEXTURE_SIZE.
(*params) = 32768;
break;
default:
break;
}
}
void GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params) {
// TODO
}
}
+1
View File
@@ -12,6 +12,7 @@ namespace MG_GL::GL {
const ::GLubyte* GetStringi(GLenum name, GLuint index);
::GLenum GetError();
void GetIntegerv(GLenum pname, GLint *params);
void GetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params);
}
#endif //MOBILEGL_GL_GETTER_H