Пример #1
0
    def __init__(self, fullscreen=False):
        title = "Demo (F1 for help - 'm' to toggle menu)"
        Viewer.__init__(self, -1, -1, title, fullscreen)

        self.uiView = False
        self.uiDemo = True
        self.showUI = True
        self.source = ''

        self.defaultColor = gl.ColorRGBA(100, 100, 100, 255)
        self.edgeColor = gl.ColorRGBA(255, 255, 255, 255)
Пример #2
0
 def __init__(self, fullscreen = False):
     title = "Demo (F1 for help - 'm' to toggle menu)"
     Viewer.__init__(self, -1, -1, title, fullscreen)
     
     self.uiView = False
     self.uiDemo = True
     self.showUI = True
     self.source = ''
     
     self.defaultColor = gl.ColorRGBA(100,100,100,255)
     self.edgeColor = gl.ColorRGBA(255,255,255,255)
Пример #3
0
    def onChar(self, ch):
        if ch == 'm':
            self.showUI = not self.showUI
            self.onRefresh()

        Viewer.onChar(self, ch)
Пример #4
0
 def onChar(self, ch):    
     if ch == 'm':
         self.showUI = not self.showUI
         self.onRefresh()
     
     Viewer.onChar(self, ch)