19 WindowSurface() =
default;
20 virtual ~WindowSurface() =
default;
22 WindowSurface(
const WindowSurface& other) =
delete;
23 WindowSurface& operator=(
const WindowSurface& other) =
delete;
25 WindowSurface(WindowSurface && other) =
delete;
26 WindowSurface& operator=(WindowSurface && other) =
delete;
32 virtual void hint()
const = 0;
47 virtual void attach(GLFWwindow* window) = 0;
54 virtual void present(GLFWwindow* window) = 0;
62 virtual void setVSync(GLFWwindow* window,
bool enabled) = 0;
virtual void setVSync(GLFWwindow *window, bool enabled)=0
Wait for the display's refresh before presenting, or not.
virtual void present(GLFWwindow *window)=0
Show the frame drawn into window.
virtual void hint() const =0
Ask GLFW for this surface, after glfwInit and before the window is created.
virtual void attach(GLFWwindow *window)=0
Take the window it was hinted for and load the API on it, with vsync off.
virtual std::string describe() const =0
What hint() asks for, for a log line when the window cannot be made.