Minor cleanup
This commit is contained in:
@@ -35,6 +35,9 @@ class CubesExampleAppImpl final : public CubesExampleApp
|
||||
InputAction* actionLookUp;
|
||||
InputAction* actionLookSide;
|
||||
|
||||
float yaw = 0, pitch = 0;
|
||||
Vector3f_SIMD position = {0,0,-10};
|
||||
|
||||
public:
|
||||
std::string GetAppName() override { return "ExampleApp"; }
|
||||
std::string GetAppVersion() override { return "v1.0"; }
|
||||
@@ -87,9 +90,6 @@ public:
|
||||
actionLookSide->BindKey(InputKey(InputKey::Mouse::AXIS_X));
|
||||
}
|
||||
|
||||
float yaw = 0, pitch = 0;
|
||||
Vector3f_SIMD position = {0,0,-10};
|
||||
|
||||
void Tick() override
|
||||
{
|
||||
for(int i = 0; i < DYNAMIC; i++)
|
||||
|
||||
@@ -8,12 +8,14 @@
|
||||
#include "Base/EngineConfiguration.hpp"
|
||||
#include "ExampleApps/CubesExampleApp.hpp"
|
||||
|
||||
using namespace openVulkanoCpp;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
const auto cubesApp = CubesExampleApp::Create();
|
||||
std::unique_ptr<IGraphicsApp> app = CubesExampleApp::Create();
|
||||
int threads = 4;
|
||||
openVulkanoCpp::EngineConfiguration::GetEngineConfiguration()->SetNumThreads(threads);
|
||||
openVulkanoCpp::GraphicsAppManager manager(cubesApp.get());
|
||||
EngineConfiguration::GetEngineConfiguration()->SetNumThreads(threads);
|
||||
GraphicsAppManager manager(app.get());
|
||||
manager.Run();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user