Created Vulkan Instance (VkInstance)
This commit is contained in:
21
src/managers/GLFWManager.h
Normal file
21
src/managers/GLFWManager.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#include "GLFW/glfw3.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace PB::Renderer
|
||||
{
|
||||
class GLFWManager
|
||||
{
|
||||
private:
|
||||
static std::vector<GLFWwindow*> s_Windows;
|
||||
|
||||
public:
|
||||
static bool Init();
|
||||
static bool Cleanup();
|
||||
|
||||
static GLFWwindow* CreateWindow(int width, int height, const char* title = "Unnamed window");
|
||||
static GLFWwindow* GetWindow(int index = 0);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user