int main(int, char**){ glfwInitWindowSize(512, 512); glfwCreateWindow("introglsl"); glfwDisplayFunc(display); init(); glfwMainLoop(); triangle.cleanup(); quad.cleanup(); return EXIT_SUCCESS; }
int main(int, char**){ ///--- Set window size glfwInitWindowSize(windowDimension, windowDimension); ///--- Create the window glfwCreateWindow("3DWorld"); ///--- Read in the keyboard input and modify the camera's position glfwSetKeyCallback(keyboard); ///--- Specify and call the display function glfwDisplayFunc(display); ///--- Initialize the window init(); ///--- Set the main loop glfwMainLoop(); ///--- Cleanup after our project exits the glfwMainLoop quad.cleanup(); ///--- Exit the main loop return EXIT_SUCCESS; }