void doTransform( TransformInfo & t ) {

	glTranslatefv( t.vTranslate );
	glRotatefv( t.vRotate );
	glScalefv( t.vScale );

	// finally set color
	glColorfv( t.vColor );

}
Beispiel #2
0
// Filling up background with stars.
void stars()
{
	glColor3f(1.0, 1.0, 1.0);
	for (GLint i = 0; i < 25; i++)
	{
		glPushMatrix();
		glTranslatefv(starloc[i]);
		glutSolidSphere(0.03, 15, 20);
		glPopMatrix();
	}
}