Refactor app creation for better iOS support

This commit is contained in:
2023-07-28 18:09:11 +02:00
parent deaf45f429
commit 13cefdf9f8
5 changed files with 19 additions and 4 deletions

View File

@@ -95,7 +95,12 @@ public:
void Close() override{}
};
std::unique_ptr<openVulkanoCpp::IGraphicsApp> CubesExampleApp::Create()
openVulkanoCpp::IGraphicsApp* CubesExampleApp::Create()
{
return new CubesExampleAppImpl();
}
std::unique_ptr<openVulkanoCpp::IGraphicsApp> CubesExampleApp::CreateUnique()
{
return std::make_unique<CubesExampleAppImpl>();
}