NativeWindowEglFbdev.h 661 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2009-2021, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #pragma once
  6. #include <anki/core/NativeWindow.h>
  7. #define EGL_FBDEV 1
  8. #include <EGL/egl.h>
  9. #include <GLES3/gl3.h>
  10. namespace anki
  11. {
  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(NativeWindowInitInfo& init);
  24. void destroy();
  25. };
  26. } // end namespace anki