Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
VulkanWindow.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 #ifdef USING_VULKAN
5 #define GLFW_INCLUDE_VULKAN
7 #include <ThirdParty/Vulkan/Include/vulkan/vulkan.h>
8 
9 namespace Engine
10 {
11  class ENGINE_API VulkanWindow : public Window
12  {
13  friend class Engine;
14 
15  public:
16  VkSurfaceKHR CreateSurface(VkInstance instance);
17 
18  private:
19 
20  VulkanWindow() = delete;
21  VulkanWindow(int width, int height, const char* title) noexcept;
22  VulkanWindow(VulkanWindow const &other) = default;
23  VulkanWindow(VulkanWindow &&other) noexcept = default;
24  public:
25  ~VulkanWindow() noexcept = default;
26  private:
27 
28  eastl::shared_ptr<Window> windowReference;
29  VkSurfaceKHR surface;
30  };
31 } //namespace Engine
32 #endif
#define ENGINE_API
Definition: api.hpp:25