This just shows a blank black screen, and if I do not put glutSwapBuffers() in both places it shows a blank white screen? [duplicate]
问题 This question already has answers here : GLUT is just rendering a blank white screen? (2 answers) Closed 6 years ago . When I compile it, it makes a blank blac screen, if I take out glut swap buffers from either location, or both at the same time I get a blank white screen, whats the problem? #ifdef __APPLE__ #include <GLUT/glut.h> #else #include <GL/glut.h> #endif #include <stdlib.h> void ProcessSpecialKeys(int key, int x, int y){ switch(key){ case GLUT_KEY_RIGHT: exit(0); case GLUT_KEY_LEFT