40 lines
No EOL
465 B
C++
40 lines
No EOL
465 B
C++
#include "vulkan/vulkan.h"
|
|
|
|
#include "iostream"
|
|
#include "stdexcept"
|
|
#include "cstdlib"
|
|
|
|
class Application {
|
|
public:
|
|
void run() {
|
|
initVulkan();
|
|
mainLoop();
|
|
cleanup();
|
|
}
|
|
|
|
private:
|
|
void initVulkan() {
|
|
|
|
}
|
|
|
|
void mainLoop() {
|
|
|
|
}
|
|
|
|
void cleanup() {
|
|
|
|
}
|
|
};
|
|
|
|
int main() {
|
|
Application app;
|
|
|
|
try {
|
|
app.run();
|
|
} catch (const std::exception& e) {
|
|
std::cerr << e.what() << std::endl;
|
|
return EXIT_FAILURE;
|
|
}
|
|
|
|
return EXIT_SUCCESS;
|
|
} |