22 lines
404 B
C++
22 lines
404 B
C++
#pragma once
|
|
|
|
#define GLFW_INCLUDE_VULKAN
|
|
#include "GLFW/glfw3.h"
|
|
|
|
|
|
namespace VkObjects
|
|
{
|
|
class Instance;
|
|
|
|
class Surface
|
|
{
|
|
VkSurfaceKHR surface_ = nullptr;
|
|
const Instance& instance_;
|
|
public:
|
|
explicit Surface(const Instance& instance, GLFWwindow* window);
|
|
~Surface();
|
|
|
|
inline VkSurfaceKHR get_native() const { return surface_; }
|
|
};
|
|
}
|