All pastes #674202 Raw Edit

Main.py

public python v1 · immutable
#674202 ·published 2007-08-29 00:18 UTC
rendered paste body
from Canvas import *from Imagen import *#limpiar el canvasdef clear():	glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)#refrescar la ventanadef update():	pygame.display.flip()def main():	can = Canvas()	imagen = Imagen()		imagen2 = Imagen()	clear()		while True:						imagen.dibujar(-1,-1,0.5)				imagen2.dibujar(1,1,1)				update()        for e in pygame.event.get():            if e.type == pygame.QUIT:                sys.exit()            elif e.type == pygame.KEYDOWN and e.key == pygame.K_ESCAPE:                sys.exit()if __name__ == "__main__":	main()