NativeWindowEglFbdev.h 570 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef ANKI_CORE_NATIVE_WINDOW_EGL_FBDEV_H
  2. #define ANKI_CORE_NATIVE_WINDOW_EGL_FBDEV_H
  3. #include "anki/core/NativeWindow.h"
  4. #define EGL_FBDEV 1
  5. #include <EGL/egl.h>
  6. #include <GLES3/gl3.h>
  7. namespace anki {
  8. /// Native window implementation for EGL & FBDEV
  9. struct NativeWindowImpl
  10. {
  11. EGLDisplay display = EGL_NO_DISPLAY;
  12. EGLSurface surface = EGL_NO_SURFACE;
  13. EGLContext context = EGL_NO_CONTEXT;
  14. EGLNativeWindowType fbwin = 0;
  15. ~NativeWindowImpl()
  16. {
  17. destroy();
  18. }
  19. void create(NativeWindowInitializer& init);
  20. void destroy();
  21. };
  22. } // end namespace anki
  23. #endif