#include <GL/gl.h> #include "aux.h" int main(int argc, char** argv) { auxInitDisplayMode (AUX_SINGLE | AUX_RGB); auxInitPosition (0, 0, 500, 500); auxInitWindow (argv[0]); glClear(GL_COLOR_BUFFER_BIT); glOrtho(-10.0, 10.0, -10.0, 10.0, -10.0, 10.0); glPointSize(10.0); glBegin(GL_POINTS); glVertex2f(0.0,0.0); glVertex2f(0.0,3.0); glVertex2f(3.0, 0.0); glVertex2f(3.0,3.0); glVertex2f(4.0,1.5); glEnd(); glFlush(); sleep (10); }