Esempio n. 1
0
 def euler_rotate(self, angle, x, y, z):
     self.setup_projection()
     self.apply_transformations()
     glLoadMatrixf(self.rot)
     glRotatef(angle, x, y, z)
     self.rot = util.get_model_matrix()
     self.unset_projection()
 def mult_rot_matrix(self, rot):
     glPushMatrix()
     glLoadMatrixf(rot)
     glMultMatrixf(self._rot)
     self._rot = get_model_matrix()
     glPopMatrix()
 def init_rot_matrix(self):
     glPushMatrix()
     glLoadIdentity()
     self._rot = get_model_matrix()
     glPopMatrix()
 def euler_rotate(self, angle, x, y, z):
     glPushMatrix()
     glLoadMatrixf(self._rot)
     glRotatef(angle, x, y, z)
     self._rot = get_model_matrix()
     glPopMatrix()
Esempio n. 5
0
 def euler_rotate(self, angle, x, y, z):
     glPushMatrix()
     glLoadMatrixf(self._rot)
     glRotatef(angle, x, y, z)
     self._rot = get_model_matrix()
     glPopMatrix()
Esempio n. 6
0
 def mult_rot_matrix(self, rot):
     glPushMatrix()
     glLoadMatrixf(rot)
     glMultMatrixf(self._rot)
     self._rot = get_model_matrix()
     glPopMatrix()
Esempio n. 7
0
 def init_rot_matrix(self):
     glPushMatrix()
     glLoadIdentity()
     self._rot = get_model_matrix()
     glPopMatrix()