mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 12:18:30 +09:00
[Feat] (MG_Impl/EGLImpl): expose surfaceless platform extensions
This commit is contained in:
@@ -14,6 +14,8 @@
|
||||
#include <OpenGL/OpenGL.h>
|
||||
#endif
|
||||
|
||||
extern "C" EGLDisplay eglGetPlatformDisplayEXT(EGLenum platform, void* native_display, const EGLint* attrib_list);
|
||||
|
||||
#define GETPROC(name, var) \
|
||||
if (strcmp(#name, var) == 0) { \
|
||||
return (void*)name; \
|
||||
@@ -63,6 +65,7 @@ namespace MobileGL::MG_Impl {
|
||||
GETPROC(eglCreateImage, name);
|
||||
GETPROC(eglDestroyImage, name);
|
||||
GETPROC(eglGetPlatformDisplay, name);
|
||||
GETPROC(eglGetPlatformDisplayEXT, name);
|
||||
GETPROC(eglCreatePlatformWindowSurface, name);
|
||||
GETPROC(eglCreatePlatformPixmapSurface, name);
|
||||
GETPROC(eglWaitSync, name);
|
||||
|
||||
Reference in New Issue
Block a user