]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/vulkancontext.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / graphics / vulkancontext.h
index f80f5cb5ddc4363daed3ddc354bd0eb7a50a0abc..6d210e2338f293f68ed4c2b35120072b4d753a46 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <stdexcept>
 #include <string>
+#include "mspgui_api.h"
 
 namespace Msp {
 namespace Graphics {
@@ -10,11 +11,10 @@ namespace Graphics {
 class Display;
 class Window;
 
-class vulkan_error: public std::runtime_error
+class MSPGUI_API vulkan_error: public std::runtime_error
 {
 public:
        vulkan_error(unsigned, const char *);
-       virtual ~vulkan_error() throw() { }
 
 private:
        static std::string get_error_message(unsigned);
@@ -22,21 +22,20 @@ private:
 
 struct VulkanOptions
 {
-       bool enable_validation;
-       bool enable_debug_report;
-       bool enable_geometry_shader;
-
-       VulkanOptions();
+       bool enable_validation = false;
+       bool enable_debug_report = false;
+       bool enable_geometry_shader = false;
+       bool enable_tessellation_shader = false;
 };
 
-class VulkanContext
+class MSPGUI_API VulkanContext
 {
 private:
        struct Private;
 
        Display &display;
        Window &window;
-       Private *priv;
+       Private *priv = nullptr;
 
 public:
        VulkanContext(Window &, const VulkanOptions & = VulkanOptions());