trivial/tri-viewport: add more out-of-bounds background quads

This commit is contained in:
Keith Whitwell
2009-04-21 10:59:54 +01:00
parent a38f7d9e68
commit 6e05224bc4
+27 -1
View File
@@ -103,14 +103,40 @@ static void Draw(void)
* Should be clipped to be no larger than the triangles:
*/
glViewport(tx, ty, w, h);
glBegin(GL_POLYGON);
glColor3f(.5,.5,1);
glColor3f(1,1,0);
glVertex3f(-100, -100, -30.0);
glVertex3f(-100, 100, -30.0);
glVertex3f(100, 100, -30.0);
glVertex3f(100, -100, -30.0);
glEnd();
glBegin(GL_POLYGON);
glColor3f(0,1,1);
glVertex3f(-10, -10, -30.0);
glVertex3f(-10, 10, -30.0);
glVertex3f(10, 10, -30.0);
glVertex3f(10, -10, -30.0);
glEnd();
glBegin(GL_POLYGON);
glColor3f(1,0,0);
glVertex3f(-2, -2, -30.0);
glVertex3f(-2, 2, -30.0);
glVertex3f(2, 2, -30.0);
glVertex3f(2, -2, -30.0);
glEnd();
glBegin(GL_POLYGON);
glColor3f(.5,.5,1);
glVertex3f(-1, -1, -30.0);
glVertex3f(-1, 1, -30.0);
glVertex3f(1, 1, -30.0);
glVertex3f(1, -1, -30.0);
glEnd();
/***********************************************************************
*/
glViewport(0, 0, win_width, win_height);