Esempio n. 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()
Esempio n. 2
0
 def translate(self,dx,dy,dz):
     glPushMatrix()
     glLoadIdentity()
     glTranslatef(dx,dy,dz)
     glMultMatrixf(self.matrix)
     self.matrix=get_model_matrix()
     glPopMatrix()
Esempio n. 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()
Esempio n. 4
0
 def translate(self, dx, dy, dz):
     glPushMatrix()
     glLoadIdentity()
     glTranslatef(dx, dy, dz)
     glMultMatrixf(self.matrix)
     self.matrix = get_model_matrix()
     glPopMatrix()
Esempio n. 5
0
 def reset(self):        
     glPushMatrix()
     glLoadIdentity()
     self.matrix=get_model_matrix()                
     glPopMatrix()
Esempio n. 6
0
 def reset(self):
     glPushMatrix()
     glLoadIdentity()
     self.matrix = get_model_matrix()
     glPopMatrix()