Category: OpenGL

14
May
2016

Draw a rectangle with OpenGL

Code: #include<windows.h> #include <GL/gl.h> #include <GL/glut.h> void display(void) { /* clear all pixels */ glClear (GL_COLOR_BUFFER_BIT); /*…