Jump to Content

Opengl 2 <INSTANT>

Diving back into OpenGL 2 – the fixed-function nostalgia

int main(int argc, char** argv) glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE opengl 2

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 . Diving back into OpenGL 2 – the fixed-function

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. char** argv) glutInit(&argc

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