From 186279ee1ee54f2cdf619f4740679bb0d8b74db4 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Fri, 17 Nov 2017 23:13:42 +0000 Subject: Renaming color to colour --- yage/core/window.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'yage/core/window.cpp') 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); } -- cgit