NativeWindowEglFbdev.h 556 B

123456789101112131415161718192021222324252627282930
  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. #include <EGL/egl.h>
  5. #include <GLES3/gl3.h>
  6. namespace anki {
  7. /// Native window implementation for EGL & FBDEV
  8. struct NativeWindowImpl
  9. {
  10. EGLDisplay display = EGL_NO_DISPLAY;
  11. EGLSurface surface = EGL_NO_SURFACE;
  12. EGLContext context = EGL_NO_CONTEXT;
  13. EGLNativeWindowType fbwin = nullptr;
  14. ~NativeWindowImpl()
  15. {
  16. destroy();
  17. }
  18. void create(NativeWindowInitializer& init);
  19. void destroy();
  20. };
  21. } // end namespace anki
  22. #endif