hyporo-cpp/source/hpr/gpu/monitor.hpp

34 lines
372 B
C++
Raw Normal View History

2023-03-13 22:27:09 +05:00
#pragma once
#include <GLFW/glfw3.h>
namespace hpr::gpu
{
class Monitor
{
protected:
GLFWmonitor* p_instance;
public:
inline
Monitor() :
p_instance {glfwGetPrimaryMonitor()}
{}
virtual
~Monitor() = default;
inline
GLFWmonitor* instance() const
{
return p_instance;
}
};
}