NativeWindowAndroid.h 547 B

12345678910111213141516171819202122232425
  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 <android_native_app_glue.h>
  8. namespace anki
  9. {
  10. /// Native window implementation for Android
  11. class NativeWindowAndroid : public NativeWindow
  12. {
  13. public:
  14. ANativeWindow* m_nativeWindow = nullptr;
  15. ~NativeWindowAndroid();
  16. ANKI_USE_RESULT Error init(const NativeWindowInitInfo& init);
  17. };
  18. } // end namespace anki