#include <GL/gl.h>
#include "aux.h"

int main(int argc, char** argv)
{
        auxInitDisplayMode (AUX_SINGLE | AUX_RGB);
        auxInitPosition (10, 10, 500, 500);
        auxInitWindow ("erstes Beispiel");

        glClearColor (0.0, 0.0, 0.0, 0.0);
        glClear(GL_COLOR_BUFFER_BIT);
        glColor3f(1.0, 1.0, 1.0);
        glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0);
        glBegin(GL_POLYGON);
                glVertex2f(-0.5, -0.5);
                glVertex2f(-0.5, 0.5);
                glVertex2f(0.5, 0.5);
                glVertex2f(0.5, -0.5);
        glEnd();
        glFlush();
        sleep (10);
}