Adding namespacing.

This commit is contained in:
Faerbit 2014-12-01 17:40:39 +01:00
parent 3e23b99506
commit deacb8169d

View File

@ -3,8 +3,6 @@
#include <iomanip> #include <iomanip>
#include <sstream> #include <sstream>
using namespace std;
Graphics::Graphics() { Graphics::Graphics() {
} }
@ -44,7 +42,7 @@ bool Graphics::createWindow()
// //
if ( !glfwInit() ) if ( !glfwInit() )
{ {
ACGL::Utils::error() << "Failed to initialize GLFW" << endl; ACGL::Utils::error() << "Failed to initialize GLFW" << std::endl;
exit( -1 ); exit( -1 );
} }
@ -70,7 +68,7 @@ bool Graphics::createWindow()
// R,G,B,A, Depth,Stencil // R,G,B,A, Depth,Stencil
window = glfwCreateWindow(windowSize.x, windowSize.y, "SWP MarbleGame Group C", NULL, NULL); window = glfwCreateWindow(windowSize.x, windowSize.y, "SWP MarbleGame Group C", NULL, NULL);
if (!getWindow()) { 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; return false;
} }
glfwMakeContextCurrent(window); glfwMakeContextCurrent(window);