vktutorial/main.cpp

27 lines
358 B
C++
Raw Normal View History

2024-02-21 13:28:50 +08:00
#include "first_app.hpp"
// std
#include <cstdlib>
#include <iostream>
#include <stdexcept>
2024-04-12 23:24:53 +08:00
#define GRAVITY_SYSTEM 1
2024-02-21 13:28:50 +08:00
int main()
{
hk::FirstApp app{};
try
{
2024-04-12 23:24:53 +08:00
#if GRAVITY_SYSTEM == 1
app.runGravitySystem();
#else
2024-02-21 13:28:50 +08:00
app.run();
2024-04-12 23:24:53 +08:00
#endif
2024-02-21 13:28:50 +08:00
}
catch(const std::exception& e)
{
std::cerr << e.what() << '\n';
}
}