scop
a small 3D object loader
Loading...
Searching...
No Matches
Main.cpp
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* Main.cpp :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: rbourgea <rbourgea@student.42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2024/01/11 06:37:08 by rbourgea #+# #+# */
9/* Updated: 2024/01/16 11:11:14 by rbourgea ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "VulkanApp.hpp"
14
15int main(int argc, char** argv) {
16 if (argc != 2) {
17 std::cerr << "Usage: " << argv[0] << " \"path/to/file.obj\"" << std::endl;
18 return EXIT_FAILURE;
19 }
20
21 VulkanApp app;
22
23 try {
24 app.run(argv[1]);
25 } catch (const std::exception& e) {
26 std::cerr << e.what() << std::endl;
27 return EXIT_FAILURE;
28 }
29
30 return EXIT_SUCCESS;
31}
int main(int argc, char **argv)
Definition Main.cpp:15
void run(const std::string &objFile1)