Opengl 2 -

Anyone else still occasionally writing fixed-function OpenGL for fun? 😄

#include <GL/glut.h> void display() glClear(GL_COLOR_BUFFER_BIT opengl 2

int main(int argc, char** argv) GLUT_RGB); glutCreateWindow("OpenGL 2 Fixed Function"); glutDisplayFunc(display); glutMainLoop(); return 0; char** argv) GLUT_RGB)

For those who didn't start there, OpenGL 2 introduced the shader model (1.10/1.20) and still fully supported the fixed-function pipeline. But in practice, most people associate "OpenGL 2" with immediate mode ( glBegin/glEnd ), glVertex , glMatrixMode , and lighting via glLight . glutCreateWindow("OpenGL 2 Fixed Function")

Diving back into OpenGL 2 – the fixed-function nostalgia

Here’s a minimal working example in C (GLUT/FreeGLUT):