diff --git a/graphics.cc b/graphics.cc index d0ff87b..9385ccc 100644 --- a/graphics.cc +++ b/graphics.cc @@ -37,18 +37,14 @@ void Graphics::setGLFWHintsForOpenGLVersion( unsigned int _version ) bool Graphics::createWindow() { - ///////////////////////////////////////////////////////////////////////////////////// // Initialise GLFW - // if ( !glfwInit() ) { ACGL::Utils::error() << "Failed to initialize GLFW" << std::endl; exit( -1 ); } - ///////////////////////////////////////////////////////////////////////////////////// // Configure OpenGL context - // setGLFWHintsForOpenGLVersion( ACGL_OPENGL_VERSION ); // activate multisampling (second parameter is the number of samples): @@ -60,10 +56,6 @@ bool Graphics::createWindow() // define whether the window can get resized: glfwWindowHint(GLFW_RESIZABLE, true); - // non-decorated windows can be used as splash screens: - //glfwWindowHint( GLFW_DECORATED, false ); - - ///////////////////////////////////////////////////////////////////////////////////// // try to create an OpenGL context in a window and check the supported OpenGL version: // R,G,B,A, Depth,Stencil window = glfwCreateWindow(windowSize.x, windowSize.y, "SWP MarbleGame Group C", NULL, NULL); diff --git a/main.cc b/main.cc index 1a5af19..acf86c9 100644 --- a/main.cc +++ b/main.cc @@ -51,17 +51,13 @@ int main( int argc, char *argv[] ) { //Application app = Application(); - ///////////////////////////////////////////////////////////////////////////////////// // Create OpenGL capable window: - // if ( !app.getGraphics()->createWindow() ) { glfwTerminate(); exit( -1 ); } - ///////////////////////////////////////////////////////////////////////////////////// // Set window title to binary name (without the path): - // std::vector tmp = ACGL::Utils::StringHelpers::split( std::string( argv[0] ), '/' ); glfwSetWindowTitle(app.getGraphics()->getWindow(), tmp[tmp.size()-1].c_str() ); // Ensure we can capture the escape key being pressed below @@ -76,9 +72,7 @@ int main( int argc, char *argv[] ) // Enable vertical sync (on cards that support it) with parameter 1 - 0 means off glfwSwapInterval( 0 ); - ///////////////////////////////////////////////////////////////////////////////////// // OpenGL state: - // glClearColor( 0.0, 0.0, 0.0, 1.0 ); glEnable( GL_DEPTH_TEST ); glEnable(GL_BLEND);