GLFramework/example/MyWindow.hpp
2020-08-29 17:51:22 +02:00

22 lines
356 B
C++

#include "glf.hpp"
using namespace glf;
class MyWindow :
public IWindow
{
public:
MyWindow() :
IWindow()
{
Create(800, 600, "Example Window");
glfwSetFramebufferSizeCallback(window, FramebufferSizeCallback);
}
private:
static void FramebufferSizeCallback(GLFWwindow* window, int width, int height)
{
glViewport(0, 0, width, height);
}
};