aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/window.h
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-01-06 11:30:24 +0000
committerYann Herklotz <ymherklotz@gmail.com>2018-01-06 11:30:24 +0000
commitc7090180503f263c60ec34844992e0e8d4bea85a (patch)
tree6ecc5b2e16856db49de056738b36e1ba103d3049 /yage/core/window.h
parentcf4c73f2a75b470a4d4c4167105f92bc46f1926c (diff)
parent07012cf0982d3f86aebe83b5bdc4a67332c635da (diff)
downloadYAGE-c7090180503f263c60ec34844992e0e8d4bea85a.tar.gz
YAGE-c7090180503f263c60ec34844992e0e8d4bea85a.zip
Merge branch 'develop'
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