_
Created
October 29, 2013 06:26
-
-
Save ph4un00b/7209932 to your computer and use it in GitHub Desktop.
opengl
commands are executed on an offscreen && then swapped
- glut =>
GLUT_DOUBLE
for test
- glut =>
GLUT_DEPTH
Here, we must set a callback function for when the window changes size so that we can set up the viewport
GLenum err = glewInit(); if (GLEW_OK != err) { fprintf(stderr, “GLEW Error: %s\n”, glewGetErrorString(err)); return 1; }
never returns after it is called until the main window is closed and needs to be called only once from an application. This function processes all the oper- ating system-specific messages, keystrokes, and so on until you terminate the program. It also makes sure those callback functions we registered earlier are called appropriately.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment