SimpleGL  1.1.0
A framework for platform independent rendering
surface.hpp
Go to the documentation of this file.
1 
8 #ifndef SURFACE_HPP
9 #define SURFACE_HPP
10 
11 #include <SimpleGL_vk/SimpleGL_vk_Export.h>
12 
13 #include <vulkan/vulkan.h>
14 
15 namespace sgl {
16 
17  /* Forward declaration needed because of a circular dependency */
18  class WindowVK;
19 
25  class SIMPLEGL_VK_EXPORT Surface {
26 
27  private:
29  VkSurfaceKHR handle;
30 
31  public:
37  Surface(WindowVK* window);
38 
40  ~Surface(void);
41 
47  VkSurfaceKHR getHandle();
48  };
49 }
50 
51 #endif /* SURFACE_HPP */
This class provides a GLFW window with a Vulkan instance.
Generic namespace for the SimpleGL framework.
Definition: application.hpp:18
This class wraps a Vulkan surface.
Definition: surface.hpp:25