[pyassimp] Minor tuning in 3d_viewer.py

pull/22/head
Séverin Lemaignan 2013-03-24 00:12:02 +01:00
parent fa7ff915c1
commit da140f2a05
1 changed files with 5 additions and 5 deletions

View File

@ -11,6 +11,8 @@ Based on:
- http://www.songho.ca/opengl/gl_transform.html
- http://code.activestate.com/recipes/325391/
- ASSIMP's C++ SimpleOpenGL viewer
Authors: Séverin Lemaignan, 2012-2013
"""
import sys
@ -21,8 +23,8 @@ gllogger.setLevel(logging.WARNING)
logging.basicConfig(level=logging.INFO)
import OpenGL
#OpenGL.ERROR_CHECKING=False
#OpenGL.ERROR_LOGGING = False
OpenGL.ERROR_CHECKING=False
OpenGL.ERROR_LOGGING = False
#OpenGL.ERROR_ON_COPY = True
#OpenGL.FULL_LOGGING = True
from OpenGL.GL import *
@ -403,8 +405,6 @@ if __name__ == '__main__':
app.render()
app.controls_3d(0)
if pygame.K_f in app.keys: pygame.display.toggle_fullscreen()
if pygame.K_s in app.keys: app.screenshot()
if pygame.K_v in app.keys: app.check_visibility()
if pygame.K_TAB in app.keys: app.cycle_cameras()
if pygame.K_ESCAPE in app.keys:
break