diff options
author | Edward O'Callaghan <funfunctor@folklore1984.net> | 2017-02-06 22:29:55 +1100 |
---|---|---|
committer | Edward O'Callaghan <funfunctor@folklore1984.net> | 2017-02-06 22:29:55 +1100 |
commit | bec7c7a073debdf47cc6bb0fbb42227aea96735e (patch) | |
tree | 6bcf593634c3abf4c90a8b77f7ca23d90c09d39c /src |
initial
Signed-off-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 15 | ||||
-rw-r--r-- | src/main.cpp | 35 |
2 files changed, 50 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..743404c --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,15 @@ +# Copyright 2017 Edward O'Callaghan <funfunctor@folklore1984.net> + +project(main) + +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/) + +#application objects +#add_library(umrapp +# foo.cpp +#) + +add_executable(${PROJECT_NAME} main.cpp) +#target_link_libraries(umr umrapp) + +install(TARGETS ${PROJECT_NAME} DESTINATION bin) diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..43416ee --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,35 @@ +#include <vulkan/vulkan.h> + +#include <iostream> +#include <stdexcept> +#include <functional> + +class HelloTriangleApplication { +public: + void run() { + initVulkan(); + mainLoop(); + } + +private: + void initVulkan() { + + } + + void mainLoop() { + + } +}; + +int main() { + HelloTriangleApplication app; + + try { + app.run(); + } catch (const std::runtime_error& e) { + std::cerr << e.what() << std::endl; + return EXIT_FAILURE; + } + + return EXIT_SUCCESS; +} |