Пример #1
0
 def rotate(self, ang, rx, ry, rz):
     glPushMatrix()
     glLoadIdentity()
     glRotatef(ang, rx, ry, rz)
     glMultMatrixf(self.matrix)
     self.matrix = get_model_matrix()
     glPopMatrix()
Пример #2
0
 def translate(self, dx, dy, dz):
     glPushMatrix()
     glLoadIdentity()
     glTranslatef(dx, dy, dz)
     glMultMatrixf(self.matrix)
     self.matrix = get_model_matrix()
     glPopMatrix()
Пример #3
0
 def rotate(self,ang,rx,ry,rz):
     glPushMatrix()
     glLoadIdentity()
     glRotatef(ang,rx,ry,rz)
     glMultMatrixf(self.matrix)
     self.matrix=get_model_matrix()
     glPopMatrix()
Пример #4
0
 def translate(self,dx,dy,dz):
     glPushMatrix()
     glLoadIdentity()
     glTranslatef(dx,dy,dz)
     glMultMatrixf(self.matrix)
     self.matrix=get_model_matrix()
     glPopMatrix()
Пример #5
0
 def reset(self):
     glPushMatrix()
     glLoadIdentity()
     self.matrix = get_model_matrix()
     glPopMatrix()
Пример #6
0
 def reset(self):        
     glPushMatrix()
     glLoadIdentity()
     self.matrix=get_model_matrix() 
     glPopMatrix()