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