aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/window.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-11-17 23:44:00 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-11-17 23:44:00 +0000
commitf7791709745e6c8b82ff95629f597493aff6613a (patch)
treefb8cf829601a709eabb7e520464431a98c056af3 /yage/core/window.cpp
parent186279ee1ee54f2cdf619f4740679bb0d8b74db4 (diff)
downloadYAGE-f7791709745e6c8b82ff95629f597493aff6613a.tar.gz
YAGE-f7791709745e6c8b82ff95629f597493aff6613a.zip
more tests added
Diffstat (limited to 'yage/core/window.cpp')
-rw-r--r--yage/core/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/yage/core/window.cpp b/yage/core/window.cpp
index f9246ea2..3508e835 100644
--- a/yage/core/window.cpp
+++ b/yage/core/window.cpp
@@ -17,9 +17,9 @@ void key_callback(GLFWwindow *window, int key, int scanCode, int action,
int mods)
{
if (key == GLFW_KEY_E && action == GLFW_PRESS) {
- glClearColour(0.5f, 0.f, 0.f, 1.f);
+ glClearColor(0.5f, 0.f, 0.f, 1.f);
} else {
- glClearColour(0.f, 0.5f, 0.f, 1.f);
+ glClearColor(0.f, 0.5f, 0.f, 1.f);
}
}
@@ -59,7 +59,7 @@ void Window::create(std::string window_name, int width, int height)
glfwSwapInterval(1);
// set the clear colour to black
- glClearColour(0.f, 0.5f, 0.f, 1.f);
+ glClearColor(0.f, 0.5f, 0.f, 1.f);
// set alpha blending
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);