![]() I tried to compile it using a single line in terminal with the proper flags, but always finding errors. While( glfwGetKey(window, GLFW_KEY_ESCAPE ) != GLFW_PRESS & } // Check if the ESC key was pressed or the window was closed GlfwSetInputMode(window, GLFW_STICKY_KEYS, GL_TRUE) GlewExperimental=true // Needed in core profileįprintf(stderr, "Failed to initialize GLEW\n") Try the 2.1 version of the tutorials.\n" ) If you have an Intel GPU, they are not 3.3 compatible. Window = glfwCreateWindow( 1024, 768, "Tutorial 01", NULL, NULL) įprintf( stderr, "Failed to open GLFW window. GLFWwindow* window // (In the accompanying source code, this variable is global) ![]() Open a window and create its OpenGL context ![]() GlfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE) //We don't want the old OpenGL GlfwWindowHint(GLFW_OPENGL_VERSION_MINOR, 3) GlfwWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3) // We want OpenGL 3.3 ![]() GlfwWindowHint(GLFW_FSAA_SAMPLES, 4) // 4x antialiasing I have a problem compiling this example on Ubuntu 12.04 LTS: #include įprintf( stderr, "Failed to initialize GLFW\n" ) ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |