Merge branch 'android_gradle'

This commit is contained in:
saschawillems 2018-05-11 12:17:30 +02:00
commit 69dca89a02
457 changed files with 12486 additions and 3643 deletions

View file

@ -251,7 +251,7 @@ public:
virtual ~VulkanExampleBase();
// Setup the vulkan instance, enable required extensions and connect to the physical device (GPU)
void initVulkan();
bool initVulkan();
#if defined(_WIN32)
void setupConsole(std::string title);
@ -428,12 +428,10 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int) \
}
#elif defined(VK_USE_PLATFORM_ANDROID_KHR)
// Android entry point
// A note on app_dummy(): This is required as the compiler may otherwise remove the main entry point of the application
#define VULKAN_EXAMPLE_MAIN() \
VulkanExample *vulkanExample; \
void android_main(android_app* state) \
{ \
app_dummy(); \
vulkanExample = new VulkanExample(); \
state->userData = vulkanExample; \
state->onAppCmd = VulkanExample::handleAppCommand; \