#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);
	glBegin(GL_POLYGON);
	 	glVertex2f(0.0, 0.0); glVertex2f(0.0, 3.0);
	 	glVertex2f(3.0, 3.0); glVertex2f(4.0, 1.5); 
		glVertex2f(3.0, 0.0);
	glEnd();
	glBegin(GL_LINE_STRIP);
	 	glVertex2f(0.0, 0.0); glVertex2f(0.0,-3.0);
	 	glVertex2f(-3.0,-3.0);glVertex2f(-4.0,-1.5);
		glVertex2f(-3.0,0.0);
	glEnd();
	glFlush();
	sleep (10);
}