def rotate(self,ang,rx,ry,rz): glPushMatrix() glLoadIdentity() glRotatef(ang,rx,ry,rz) glMultMatrixf(self.matrix) self.matrix=get_model_matrix() glPopMatrix()
def translate(self,dx,dy,dz): glPushMatrix() glLoadIdentity() glTranslatef(dx,dy,dz) glMultMatrixf(self.matrix) self.matrix=get_model_matrix() glPopMatrix()
def rotate(self, ang, rx, ry, rz): glPushMatrix() glLoadIdentity() glRotatef(ang, rx, ry, rz) glMultMatrixf(self.matrix) self.matrix = get_model_matrix() glPopMatrix()
def translate(self, dx, dy, dz): glPushMatrix() glLoadIdentity() glTranslatef(dx, dy, dz) glMultMatrixf(self.matrix) self.matrix = get_model_matrix() glPopMatrix()
def reset(self): glPushMatrix() glLoadIdentity() self.matrix=get_model_matrix() glPopMatrix()
def reset(self): glPushMatrix() glLoadIdentity() self.matrix = get_model_matrix() glPopMatrix()