21 #ifndef PLATFORM_ANDROID_HPP 22 #define PLATFORM_ANDROID_HPP 24 #define VK_USE_PLATFORM_ANDROID_KHR 25 #include "android_assets.hpp" 26 #include "android_native_app_glue.h" 27 #include "cpu-features.h" 28 #include "framework/application.hpp" 29 #include "platform.hpp" 30 #include "platform/os.hpp" 31 #include "platform/wsi/wsi.hpp" 58 pNativeWindow = pWindow;
75 virtual Status getWindowStatus()
override;
79 void terminate()
override;
88 Result initConnection();
91 ANativeWindow *pNativeWindow =
nullptr;
92 virtual VkSurfaceKHR createSurface()
override;
VulkanApplication * pVulkanApp
The Vulkan application.
State used for the android mainloop.
bool active
The application is in focus and running.
struct android_app * pApp
The ANativeActivity handle.
VulkanApplication is inherited by all samples. The common platform code will run the main loop and ta...