def start(): print '' print 'starting field engine...' print '' print ' Cell.lmnts seen from on_draw() method :', cells.lmnts cells.paint()
def on_draw(): # pyglet window draw event glClear(GL_COLOR_BUFFER_BIT) # inserer ICI? le facteur d'adaptation a la taille de l'ecran # TODO cells.paint() if show_fps: CLOCKDISPLAY.draw()
def start(): print'' print 'starting field engine...' print '' print ' Cell.lmnts seen from on_draw() method :', cells.lmnts cells.paint()
def start(): print cells.set cells.paint()
print':: trying to load :' print path name, ext = os.path.splitext(os.path.basename(path)) mdl = load_source('c1', path) print "" print ':: module loaded :' print name, mdl print'' print 'all modules loaded' ##--- MAIN -------------------------------------------------------------------- if __name__ == "__main__": print "" print "" print " ::: bw / animate :::" print "" print "" currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) scene_folder = get_scene_folder() parse_folder(scene_folder) print sys.path print '' print 'from animate :', cells.lmnts cells.paint() field.start() # export(duration) # frames are saved to disk
print scene_folder # sys.path.insert(0,scene_folder) # include scene folder for path in glob(scene_folder+'/[!_]*.py'): print "" print':: trying to load :' print path name, ext = os.path.splitext(os.path.basename(path)) mdl = load_source('c1', path) print "" print ':: module loaded :' print name, mdl print'' print 'all modules loaded' ##--- MAIN -------------------------------------------------------------------- if __name__ == "__main__": currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(currentdir) sys.path.insert(0,parentdir) scene_folder = get_scene_folder() parse_folder(scene_folder) print sys.path print '' print 'from animate :', cells.lmnts cells.paint() field.start() # export(duration) # frames are saved to disk