From f776df6076725d14679b31168e3ede53c966182e Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Tue, 31 Oct 2017 22:11:18 +0000 Subject: renaming base folder --- yage/base/window.h | 65 ------------------------------------------------------ 1 file changed, 65 deletions(-) delete mode 100644 yage/base/window.h (limited to 'yage/base/window.h') diff --git a/yage/base/window.h b/yage/base/window.h deleted file mode 100644 index 84ba8303..00000000 --- a/yage/base/window.h +++ /dev/null @@ -1,65 +0,0 @@ -/* ---------------------------------------------------------------------------- - * window.h - * - * Copyright (c) 2017 Yann Herklotz Grave -- MIT License - * See file LICENSE for more details - * ---------------------------------------------------------------------------- - */ - -/** @file - */ - -#ifndef WINDOW_H -#define WINDOW_H - -#include - -#include - -#include - -namespace yage -{ - -// window flags that can change it's appearance -enum WindowFlags : unsigned { - SHOWN = 0x1, - HIDDEN = 0x2, - FULLSCREEN = 0x4, - BORDERLESS = 0x8, -}; - -// window wrapper around GLFWwindow pointer -class Window -{ -private: - /// window handle - GLFWwindow *window_ = nullptr; - -public: - Window(); - Window(const Window &) = delete; - Window(Window &&) = delete; - /// destroys the window handle - ~Window(); - - Window &operator=(const Window &) = delete; - Window &operator=(Window &&) = delete; - - /// create the window, initialize the handle and update the width and height - void create(std::string window_name, int width, int height); - /// swap the buffer - void swapBuffer(); - /// clear buffer - void clearBuffer(); - /// hide windowProc - void hide(); - /// show window - void show(); - bool shouldClose(); - void pollEvents() const; -}; - -} // namespace yage - -#endif -- cgit