|
Posted at 12/18/2017 09:23:32
3#
Last edited by Rudis In 12/18/2017 09:25 Editor
You can try it.
You can modify /usr/include/EGL/eglplatform.h
- struct gbm_device;
- struct gbm_surface;
- typedef struct gbm_device * EGLNativeDisplayType;
- typedef struct gbm_surface * EGLNativeWindowType;
- typedef void * EGLNativePixmapType;
- /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
- typedef EGLNativeDisplayType NativeDisplayType;
- typedef EGLNativePixmapType NativePixmapType;
- typedef EGLNativeWindowType NativeWindowType;
Copy the code
to
- struct gbm_device;
- struct gbm_surface;
- #if defined(__GBM__)
- typedef struct gbm_device * EGLNativeDisplayType;
- typedef struct gbm_surface * EGLNativeWindowType;
- typedef void * EGLNativePixmapType;
- #elif defined(__unix__)
- #include <X11/Xlib.h>
- #include <X11/Xutil.h>
- typedef Display *EGLNativeDisplayType;
- typedef Pixmap EGLNativePixmapType;
- typedef Window EGLNativeWindowType;
- #endif
- typedef EGLNativeWindowType NativeWindowType;
- typedef EGLNativePixmapType NativePixmapType;
- typedef EGLNativeDisplayType NativeDisplayType;
Copy the code
|
|