From 8b21495faa26e99dd663ac174a776649260e63c5 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Mon, 1 Dec 2014 17:40:39 +0100 Subject: [PATCH] Adding namespacing. --- graphics.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/graphics.cc b/graphics.cc index 49a3dee..d0ff87b 100644 --- a/graphics.cc +++ b/graphics.cc @@ -3,8 +3,6 @@ #include #include -using namespace std; - Graphics::Graphics() { } @@ -44,7 +42,7 @@ bool Graphics::createWindow() // if ( !glfwInit() ) { - ACGL::Utils::error() << "Failed to initialize GLFW" << endl; + ACGL::Utils::error() << "Failed to initialize GLFW" << std::endl; exit( -1 ); } @@ -70,7 +68,7 @@ bool Graphics::createWindow() // R,G,B,A, Depth,Stencil window = glfwCreateWindow(windowSize.x, windowSize.y, "SWP MarbleGame Group C", NULL, NULL); if (!getWindow()) { - ACGL::Utils::error() << "Failed to open a GLFW window - requested OpenGL: " << ACGL_OPENGL_VERSION << endl; + ACGL::Utils::error() << "Failed to open a GLFW window - requested OpenGL: " << ACGL_OPENGL_VERSION << std::endl; return false; } glfwMakeContextCurrent(window);