aboutsummaryrefslogtreecommitdiffstats
path: root/yage/core/window.cpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-11-17 23:13:42 +0000
committerYann Herklotz <ymherklotz@gmail.com>2017-11-17 23:13:42 +0000
commit186279ee1ee54f2cdf619f4740679bb0d8b74db4 (patch)
treeb8798b8e571e4a05e84469cd1f815a6ec3e8bafe /yage/core/window.cpp
parentfbbfad54d6281c2e08aeb2ac51c68cb7ba293f7e (diff)
downloadYAGE-186279ee1ee54f2cdf619f4740679bb0d8b74db4.tar.gz
YAGE-186279ee1ee54f2cdf619f4740679bb0d8b74db4.zip
Renaming color to colour
Diffstat (limited to 'yage/core/window.cpp')
-rw-r--r--yage/core/window.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/yage/core/window.cpp b/yage/core/window.cpp
index 94e9f763..f9246ea2 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) {
- glClearColor(0.5f, 0.f, 0.f, 1.f);
+ glClearColour(0.5f, 0.f, 0.f, 1.f);
} else {
- glClearColor(0.f, 0.5f, 0.f, 1.f);
+ glClearColour(0.f, 0.5f, 0.f, 1.f);
}
}
@@ -58,8 +58,8 @@ void Window::create(std::string window_name, int width, int height)
// set vsync on
glfwSwapInterval(1);
- // set the clear color to black
- glClearColor(0.f, 0.5f, 0.f, 1.f);
+ // set the clear colour to black
+ glClearColour(0.f, 0.5f, 0.f, 1.f);
// set alpha blending
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
@@ -75,7 +75,7 @@ void Window::swapBuffer()
void Window::clearBuffer()
{
- // clears buffer with clear color
+ // clears buffer with clear colour
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
}