NativeWindowAndroid.h 708 B

1234567891011121314151617181920212223242526272829303132333435
  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_ANDROID_H
  6. #define ANKI_CORE_NATIVE_WINDOW_ANDROID_H
  7. #include "anki/core/NativeWindow.h"
  8. #include <EGL/egl.h>
  9. #include <GLES3/gl3.h>
  10. #include <android_native_app_glue.h>
  11. namespace anki {
  12. /// Native window implementation for Android
  13. struct NativeWindowImpl
  14. {
  15. EGLDisplay display = EGL_NO_DISPLAY;
  16. EGLSurface surface = EGL_NO_SURFACE;
  17. EGLContext context = EGL_NO_CONTEXT;
  18. ~NativeWindowImpl()
  19. {
  20. destroy();
  21. }
  22. void create(NativeWindowInitializer& init);
  23. void destroy();
  24. };
  25. } // end namespace anki
  26. #endif