Skip to content
Snippets Groups Projects
Verified Commit 29f8505b authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#18] Made GLFWwindow opaque and added error dump for GCC below 9

parent ff0116bf
No related branches found
No related tags found
1 merge request!21Resolve "First Triangle"
...@@ -14,6 +14,10 @@ endif() ...@@ -14,6 +14,10 @@ endif()
message("-- Language: [ C++ " ${CMAKE_CXX_STANDARD} " ]") message("-- Language: [ C++ " ${CMAKE_CXX_STANDARD} " ]")
message("-- Compiler: [ " ${CMAKE_CXX_COMPILER_ID} " " ${CMAKE_CXX_COMPILER_VERSION} " ]") message("-- Compiler: [ " ${CMAKE_CXX_COMPILER_ID} " " ${CMAKE_CXX_COMPILER_VERSION} " ]")
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0.0"))
message(FATAL_ERROR "Upgrade your compiler! GCC 9.0+ is required!")
endif()
# setting up different paths # setting up different paths
set(vkcv_config ${PROJECT_SOURCE_DIR}/config) set(vkcv_config ${PROJECT_SOURCE_DIR}/config)
set(vkcv_config_ext ${vkcv_config}/ext) set(vkcv_config_ext ${vkcv_config}/ext)
......
...@@ -4,12 +4,14 @@ ...@@ -4,12 +4,14 @@
* @file src/vkcv/Window.hpp * @file src/vkcv/Window.hpp
* @brief Window class to handle a basic rendering surface and input * @brief Window class to handle a basic rendering surface and input
*/ */
#include <GLFW/glfw3.h>
#define NOMINMAX #define NOMINMAX
#include <algorithm> #include <algorithm>
struct GLFWwindow;
namespace vkcv { namespace vkcv {
class Window final { class Window final {
private: private:
GLFWwindow *m_window; GLFWwindow *m_window;
...@@ -88,4 +90,5 @@ namespace vkcv { ...@@ -88,4 +90,5 @@ namespace vkcv {
*/ */
virtual ~Window(); virtual ~Window();
}; };
} }
\ No newline at end of file
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
* @brief Handling of global states regarding dependencies * @brief Handling of global states regarding dependencies
*/ */
#include <GLFW/glfw3.h>
#include "vkcv/Core.hpp" #include "vkcv/Core.hpp"
#include "PassManager.hpp" #include "PassManager.hpp"
#include "PipelineManager.hpp" #include "PipelineManager.hpp"
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
* @brief Window class to handle a basic rendering surface and input * @brief Window class to handle a basic rendering surface and input
*/ */
#include "vkcv/Window.hpp" #include <GLFW/glfw3.h>
#include "vkcv/Window.hpp"
namespace vkcv { namespace vkcv {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment