aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/window.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-12-24 21:04:38 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-12-24 21:04:38 +0000
commit16915d86d4b866c1fcce7523b0d34e8343ff52fc (patch)
treefdc07bff71840f7336ed5d2e751155635e8ff96a /yage/core/window.h
parentddd26ed83d3ac0335562f762ced273a1d62bd959 (diff)
downloadYAGE-16915d86d4b866c1fcce7523b0d34e8343ff52fc.tar.gz
YAGE-16915d86d4b866c1fcce7523b0d34e8343ff52fc.zip
[Code] Simple game example furthered
Diffstat (limited to 'yage/core/window.h')
-rw-r--r--yage/core/window.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/yage/core/window.h b/yage/core/window.h
index 5c16c172..93ed6c07 100644
--- a/yage/core/window.h
+++ b/yage/core/window.h
@@ -6,21 +6,18 @@
* ----------------------------------------------------------------------------
*/
-/** @file
- */
-
-#ifndef WINDOW_H
-#define WINDOW_H
-
-#include <glad/glad.h>
-
-#include <GLFW/glfw3.h>
+#ifndef YAGE_CORE_WINDOW_H
+#define YAGE_CORE_WINDOW_H
#include <string>
+class GLFWwindow;
+
namespace yage
{
+enum class key;
+
// window flags that can change it's appearance
enum WindowFlags : unsigned {
SHOWN = 0x1,
@@ -58,6 +55,8 @@ public:
void show();
bool shouldClose();
void pollEvents() const;
+
+ bool keyPressed(key k);
};
} // namespace yage