From 1686a01b6ae7467e71eac247078248de4a3b3423 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 13 Dec 2021 23:47:30 +0000 Subject: Refactor to start splitting out UI components --- gfx/window.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 gfx/window.h (limited to 'gfx/window.h') diff --git a/gfx/window.h b/gfx/window.h deleted file mode 100644 index 252ccaa..0000000 --- a/gfx/window.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef DISPLAY_INCLUDED_H -#define DISPLAY_INCLUDED_H - -#include "ptr.hpp" -#include -#include -#include -#include - -class Window { -public: - Window(int width, int height, const std::string & title); - ~Window() = default; - - NO_COPY(Window); - NO_MOVE(Window); - - void Clear(float r, float g, float b, float a) const; - void SwapBuffers() const; - -private: - using GL_Context = std::remove_pointer_t; - using SDL_WindowPtr = wrapped_ptrt; - using SDL_GLContextPtr = wrapped_ptrt; - SDL_WindowPtr m_window; - SDL_GLContextPtr m_glContext; -}; - -#endif -- cgit v1.2.3