コード例 #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)
コード例 #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)
コード例 #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)