[Feat] (MG_Impl/EGLImpl): Implement eglQueryString

This commit is contained in:
2026-01-14 22:50:40 +08:00
parent c7ca2fecf2
commit 97cbb35dbd
4 changed files with 13 additions and 0 deletions
@@ -80,6 +80,10 @@ namespace MobileGL {
return MG_External::EGL::eglQuerySurface(display, surface, attribute, value);
}
char const * QueryString(EGLDisplay display, EGLint name) {
return MG_External::EGL::eglQueryString(display, name);
}
EGLBoolean SwapInterval(EGLDisplay dpy, EGLint interval) {
return MG_External::EGL::eglSwapInterval(dpy, interval);
}
@@ -81,6 +81,10 @@ MOBILEGL_EGL_API EGLBoolean eglQuerySurface(EGLDisplay display, EGLSurface surfa
return MobileGL::MG_Impl::EGLImpl::QuerySurface(display, surface, attribute, value);
}
MOBILEGL_EGL_API char const * eglQueryString(EGLDisplay display, EGLint name) {
return MobileGL::MG_Impl::EGLImpl::QueryString(display, name);
}
MOBILEGL_EGL_API EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval) {
return MobileGL::MG_Impl::EGLImpl::SwapInterval(dpy, interval);
}
@@ -97,6 +97,10 @@ namespace MobileGL {
return EGL_TRUE;
}
char const * QueryString(EGLDisplay display, EGLint name) {
return "";
}
EGLBoolean SwapInterval(EGLDisplay dpy, EGLint interval) {
return EGL_TRUE;
}
@@ -28,6 +28,7 @@ namespace MobileGL {
EGLBoolean BindAPI(EGLenum api);
EGLSurface GetCurrentSurface(EGLint readdraw);
EGLBoolean QuerySurface(EGLDisplay display, EGLSurface surface, EGLint attribute, EGLint* value);
char const * QueryString(EGLDisplay display, EGLint name);
EGLBoolean SwapInterval(EGLDisplay dpy, EGLint interval);
EGLBoolean SwapBuffers(EGLDisplay dpy, EGLSurface draw);
EGLSurface CreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint* attrib_list);