#include <GL/glut.h> void display() glClear(GL_COLOR_BUFFER_BIT
Anyone else still occasionally writing fixed-function OpenGL for fun? 😄
int main(int argc, char** argv) GLUT_RGB); glutCreateWindow("OpenGL 2 Fixed Function"); glutDisplayFunc(display); glutMainLoop(); return 0;
I’ve been messing around with OpenGL 2.1 lately (I know, I know, it’s ancient), mostly for some retro demo coding and to understand the basics before moving to modern programmable pipelines.
Here’s a minimal working example in C (GLUT/FreeGLUT):