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)
def createDrawFunction(self): for l in self.lights: l.createDrawFunction() GLObject.createDrawFunction(self)