2
0

NativeWindowAndroid.h 547 B

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