Hi guys, I've just started learning OpenGL and I just wrote a very simple program that draws a triangle. The problem is that if I use GLUT_DOUBLE instead of GLUT_SINGLE in glutInitDisplayMode(), nothing shows up in the window. I don't know why that is and that's why I'm posting here. I don't quite understand the difference between GLUT_SINGLE and GLUT_DOUBLE.
here's my code:
Any help would be greatly appreciated, thank you!
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
int main(int argc, char** argv)
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA | GLUT_DEPTH); // <--- if I change the GLUT_SINGLE to GLUT_DOUBLE then nothing shows up