All pastes #777643 Raw Edit

Someone

public text v1 · immutable
·published 2007-11-16 22:48 UTC
rendered paste body


void Curve :: display() const
{
	Point * ptr;
	
	
	glPointSize(1.0);
	glLineWidth(5.0);
	
	glColor3f(0.0, 0.0, 0.0);
	for(uint i(0); i < segments.size(); i++)
		segments[i]->display();
	
	
	glPointSize(5.0);
	glLineWidth(1.0);
	glBegin(GL_POINTS);
	
	glColor3f(1.0, 0.51, 0.0);
	if(controls != NULL)
	{
		ptr = controls;
		do
		{
			glVertex3fv(ptr->coord);
			ptr = ptr->next;
		}
		while(ptr != controls);
	}	
	glEnd();
	glPointSize(1.0);
}