20 lines
658 B
C++
20 lines
658 B
C++
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#include "Host/GraphicsAppManager.hpp"
|
|
#include "Base/EngineConfiguration.hpp"
|
|
#include "ExampleApps/CubesExampleApp.hpp"
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
const auto cubesApp = CubesExampleApp::Create();
|
|
int threads = 4;
|
|
openVulkanoCpp::EngineConfiguration::GetEngineConfiguration()->SetNumThreads(threads);
|
|
openVulkanoCpp::IGraphicsAppManager* manager = new openVulkanoCpp::GraphicsAppManager(cubesApp.get());
|
|
manager->Run();
|
|
return 0;
|
|
}
|