Exemple #1
0
    def __init__(self, motor, lista_actores, ancho, alto, gestor_escenas,
                 permitir_depuracion):
        QGLWidget.__init__(self, None)
        self.painter = QtGui.QPainter()
        self.setMouseTracking(True)

        self.pausa_habilitada = False
        self.mouse_x = 0
        self.mouse_y = 0
        self.motor = motor
        self.lista_actores = lista_actores
        self.fps = fps.FPS(60, True)

        if permitir_depuracion:
            self.depurador = depurador.Depurador(motor.obtener_lienzo(),
                                                 self.fps)
        else:
            self.depurador = depurador.DepuradorDeshabilitado()

        self.original_width = ancho
        self.original_height = alto
        self.escala = 1
        self.startTimer(1000 / 100.0)

        self.gestor_escenas = gestor_escenas
 def __init__(self):
     motor.Motor.__init__(self)
     self.canvas = QtGui.QPainter()
     self.setMouseTracking(True)
     self.fps = fps.FPS(60, True)
     self.pausa_habilitada = False
     self.depurador = depurador.Depurador(self.obtener_lienzo(), self.fps)
     self.mouse_x = 0
     self.mouse_y = 0
     self.camara_x = 0
     self.camara_y = 0
Exemple #3
0
    def __init__(self, motor, lista_actores, ancho, alto):
        QGLWidget.__init__(self, None)
        self.painter = QtGui.QPainter()

        self.pausa_habilitada = False
        self.mouse_x = 0
        self.mouse_y = 0
        self.motor = motor
        self.depurador = depurador
        self.lista_actores = lista_actores
        self.fps = fps.FPS(60, True)
        self.depurador = depurador.Depurador(motor.obtener_lienzo(), self.fps)

        self.original_width = ancho
        self.original_height = alto
        self.escala = 1
        self.startTimer(1000 / 100.0)