Ejemplo n.º 1
0
 def createDrawFunction(self):
     """
     generate the function used for drawing.
     """
     GLObject.createDrawFunction(self)
     if self.material!=None:
         # let material create the draw function and
         # include the material state setter/unsetter
         self.material.createDrawFunction()
         
         self.joinStaticStates(enable=self.material.enableStaticStates,
                               disable=self.material.disableStaticStates)
         self.joinDynamicStates(enable=self.material.enableDynamicStates,
                                disable=self.material.disableDynamicStates)
Ejemplo n.º 2
0
 def createDrawFunction(self):
     for l in self.lights:
         l.createDrawFunction()
     GLObject.createDrawFunction(self)