

#include <GL/glut.h>
#include "stdheader.h"

void display()
{
	glClear(GL_COLOR_BUFFER_BIT);
	
	// assume that we are hardcoding how many quads we want
	glLoadIdentity();
	glTranslatef(0,0,-g_nDepth);

	glBegin(GL_TRIANGLES);
	glVertex3f(0,0,0);
	glVertex3f(0,1,0);
	glVertex3f(1,1,0);
	glEnd();

	glutSwapBuffers();

}

void reshape(int w, int h)
{
	glViewport(0,0, (GLsizei) w, (GLsizei) h);
	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();
	
	gluPerspective(60.0, (GLfloat)w/(GLfloat)h, 1.0, 300.0 );
	glTranslatef(0,0,-10);
	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();
}
