All pastes #799192 Raw Edit

paint de ouf

public text v1 · immutable
#799192 ·published 2007-11-27 12:01 UTC
rendered paste body

void glTimeline :: paintGL()
{
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	glCallList(axisList);
	
	if (zoneMin!=-1 && zoneMax!=-1)
	{
		glEnable(GL_BLEND);
		glBlendFunc(GL_ONE ,GL_ONE);
		glColor4f(0.1f,0.1f,0.1f,1.0f);
		glBegin(GL_QUADS);
			glVertex3f (zoneMin,   0.0, 0.0);
			glVertex3f (zoneMin, 105.0, 0.0);
			glVertex3f (zoneMax, 105.0, 0.0);
			glVertex3f (zoneMax,   0.0, 0.0);
		glEnd();
		glDisable(GL_BLEND);
	}
	
	if (positionSourisX != -1)
	{
		glColor3f(0.8f,0.8f,0.8f);
		glBegin(GL_LINES);
			glVertex3f (positionSourisX,  -5.0, 0.0);
			glVertex3f (positionSourisX, 105.0, 0.0);
		glEnd();
	}
	
	velocityCurve->display();
}