NativeWindowAndroid.h 642 B

1234567891011121314151617181920212223242526272829303132
  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. #include <EGL/egl.h>
  8. #include <GLES3/gl3.h>
  9. #include <android_native_app_glue.h>
  10. namespace anki
  11. {
  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(NativeWindowInitInfo& init);
  23. void destroy();
  24. };
  25. } // end namespace anki