hyporo-cpp/source/hyporo/window_system/glfw/window_system.hpp

26 lines
348 B
C++
Raw Normal View History

2022-10-27 22:27:50 +05:00
#pragma once
#include "../window_system.hpp"
#include <GLFW/glfw3.h>
2022-10-28 21:16:03 +05:00
#include <functional>
2022-10-27 22:27:50 +05:00
namespace hpr::gpu::glfw
{
class WindowSystem : public gpu::WindowSystem
{
public:
WindowSystem();
2022-10-28 21:16:03 +05:00
~WindowSystem() override;
gpu::Window* newWindow() override;
2022-10-27 22:27:50 +05:00
2022-10-28 21:16:03 +05:00
std::function<GLFWglproc(const char*)> deviceProcAddress() const;
2022-10-27 22:27:50 +05:00
};
}