Esempio n. 1
0
     try:
         scene_manager = device.getSceneManager()
     except Exception, e:
         print(e)
     else:
         print('scene_manager', scene_manager)
     print('=' * 20)
     try:
         gui_environment = device.getGUIEnvironment()
     except Exception, e:
         print(e)
     else:
         print('gui_environment', gui_environment)
     device.setResizable(True)
     print('=' * 20)
     color = SColor(255, 100, 100, 140)
     print('color argb', color.getAlpha(), color.getRed(), color.getGreen(),
           color.getBlue())
     print('=' * 20)
     while device.run():
         if device.isWindowActive():
             video_driver.beginScene(True, True, color)
             scene_manager.drawAll()
             gui_environment.drawAll()
             video_driver.endScene()
             device.sleep(50)
         else:
             device._yield()
     device.closeDevice()
     device.drop()
 else: