]> 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 c59007900a847c7583237f318f4ab8a5482d18a8..6d210e2338f293f68ed4c2b35120072b4d753a46 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <stdexcept>
 #include <string>
+#include "mspgui_api.h"
 
 namespace Msp {
 namespace Graphics {
@@ -10,7 +11,7 @@ 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 *);
@@ -27,14 +28,14 @@ struct VulkanOptions
        bool enable_tessellation_shader = false;
 };
 
-class VulkanContext
+class MSPGUI_API VulkanContext
 {
 private:
        struct Private;
 
        Display &display;
        Window &window;
-       Private *priv = 0;
+       Private *priv = nullptr;
 
 public:
        VulkanContext(Window &, const VulkanOptions & = VulkanOptions());