Ejemplo n.º 1
0
 def set_ortho(self, extent):
     design_height = 600
     self.ortho_extent = extent
     left = -extent * self.aspect
     right = extent * self.aspect
     top = extent
     bottom = -extent
     near = 0.0
     far = 1000.0
     self.projection_ortho = Matrix.from_ortho(left, right, bottom, top,
                                               near, far)
Ejemplo n.º 2
0
 def get_screen_view_projection(self):
     design_height = 600
     height = design_height
     width = design_height * self.aspect
     return Matrix.from_ortho(0.0, width, 0.0, height, -1.0, 1.0)