29 lines
527 B
C++
29 lines
527 B
C++
#pragma once
|
|
|
|
#define GLFW_INCLUDE_VULKAN
|
|
#include <GLFW/glfw3.h>
|
|
|
|
#include <string>
|
|
namespace cve {
|
|
|
|
class CveWindow {
|
|
public:
|
|
CveWindow(int w, int h, std::string name);
|
|
~CveWindow();
|
|
|
|
CveWindow(const CveWindow &) = delete;
|
|
CveWindow &operator=(const CveWindow &) = delete;
|
|
|
|
bool shouldClose() { return glfwWindowShouldClose(window); };
|
|
private:
|
|
void initWindow();
|
|
|
|
const int width;
|
|
const int height;
|
|
|
|
std::string windowName;
|
|
GLFWwindow *window;
|
|
};
|
|
|
|
}
|