Esempio n. 1
0
def material(*args):
   ''' Set the current material color.

   syntax:
      material(grey)
      material(r, g, b)
      material([r, g, b])
   '''

   color = Color.helper(*args)
   
   glMaterialfv(GL_FRONT, GL_DIFFUSE, color.data())
   glMaterialfv(GL_FRONT, GL_SPECULAR, [1.0,1.0,1.0,1.0])
   glMaterialfv(GL_FRONT, GL_SHININESS, 50.0)