Ejemplo n.º 1
0
 def setup_geom(self):
     """Move to pos, turn by angle and scale by scale"""
     super(ScalePart,self).setup_geom()
     scale=self.scale
     if scale and scale != 1:
         glEnable(GL_NORMALIZE)
         glScalef(scale,scale,scale)
Ejemplo n.º 2
0
 def setup_geom(self):
     """Move to pos, turn by angle and scale by scale"""
     super(ScalePart, self).setup_geom()
     scale = self.scale
     if scale and scale != 1:
         glEnable(GL_NORMALIZE)
         glScalef(scale, scale, scale)
Ejemplo n.º 3
0
 def setup_geom(self):
     """Move to pos, turn by angle and scale by scale"""
     super(ScalePart, self).setup_geom()
     scale = self.scale
     if scale and scale != 1:
         if isinstance(scale, (int, float)):
             sx, sy, sz = scale, scale, scale
         else:
             sx, sy, sz = scale
         glEnable(GL_NORMALIZE)
         glScalef(sx, sy, sz)