NativeWindowEglFbdev.h 731 B

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (C) 2009-2015, Panagiotis Christopoulos Charitos.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #ifndef ANKI_CORE_NATIVE_WINDOW_EGL_FBDEV_H
  6. #define ANKI_CORE_NATIVE_WINDOW_EGL_FBDEV_H
  7. #include "anki/core/NativeWindow.h"
  8. #define EGL_FBDEV 1
  9. #include <EGL/egl.h>
  10. #include <GLES3/gl3.h>
  11. namespace anki {
  12. /// Native window implementation for EGL & FBDEV
  13. struct NativeWindowImpl
  14. {
  15. EGLDisplay display = EGL_NO_DISPLAY;
  16. EGLSurface surface = EGL_NO_SURFACE;
  17. EGLContext context = EGL_NO_CONTEXT;
  18. EGLNativeWindowType fbwin = 0;
  19. ~NativeWindowImpl()
  20. {
  21. destroy();
  22. }
  23. void create(NativeWindowInitializer& init);
  24. void destroy();
  25. };
  26. } // end namespace anki
  27. #endif