GLFW - Failed To Open A Window
As my hunt for a cross-platform framework/library went in progress, GLFW was mentioned many times. So, I decided to try it out. Now, it seems as though I can't even init a window. :-/ #include #include #include int main(int argc, char *argv[]) { int running = GL_TRUE; srand(time(NULL)); if (!glfwInit()) exit(EXIT_FAILURE); if (!glfwOpenWindow(300, 300, 0, 0, 0, 0, 0, 0, GLFW_WINDOW)) { glfwTerminate(); exit(EXIT_FAILURE); } while (running) { glClear(GL_COLOR_BUFFER_BIT); glClearColor(rand() % 255 + 1, rand() % 255 + 1, rand() % 255 + 1, 0); glfwSwapBuffers(); running = !glfwGetKey(GLFW_KEY_ESC