All pastes #33308 Raw Edit

Anonymous

public text v1 · immutable
#33308 ·published 2005-12-11 20:51 UTC
rendered paste body
void redraw(void)
{
	double x;
	glClear(GL_COLOR_BUFFER_BIT);
	glBegin(GL_LINES);
		for (x=0.0; x<8.0; x++)
		{
			glColor3f(9.0, 0.0, 0.0);
			glVertex3d(.9-x/4.0, 0.7, -.3);
			glVertex3d(-.7, -.9, -0.4-x/8.0);
			glColor3f(0.0, 0.0, 10.0);
			glVertex3d(0.9, -0.9+x/10.0, 0.0);
			glVertex3d(-0.1, 0.1-x/10.0, -0.1);
			glColor3f(1.0, 1.0, 1.0);
			glVertex3d(-0.1, 0.1-x/10.0, -0.1);
			glVertex3d(.9-x/4.0, 0.7, -.3);
			glColor3f(1.0, 1.0, 1.0);
			glVertex3d(-.7, -.9, -0.4-x/8.0);
			glVertex3d(0.9, -0.9+x/10.0, 0.0);
		}
	glEnd();
	glFlush();
	return;
}