Ejemplo n.º 1
0
	def renderView(self):
		w = self.viewWidth
		h = self.viewHeight
		runtime = self.getRuntime()
		getAKU().setViewSize( w, h )
		# runtime.setBufferSize( w, h )
		runtime.changeRenderContext( 'game', w, h )
		runtime.renderAKU()		
Ejemplo n.º 2
0
 def renderView(self):
     w = self.viewWidth
     h = self.viewHeight
     runtime = self.getRuntime()
     getAKU().setViewSize(w, h)
     # runtime.setBufferSize( w, h )
     runtime.changeRenderContext('game', w, h)
     runtime.renderAKU()
Ejemplo n.º 3
0
	def onOpenWindow(self, title, w,h):
		logging.info('opening MOAI window: %s @ (%d,%d)' % ( str(title), w, h ) )
		#no argument accepted here, just use full window
		# self.getRuntime().initGLContext()
		from gii.qt.controls.GLWidget import GLWidget
		GLWidget.getSharedWidget().makeCurrent()

		self.originalSize = (w,h)
		self.tryResizeContainer( *self.originalSize )

		size=self.canvas.size()
		w,h = size.width(),size.height()

		getAKU().setScreenSize(w,h)
		getAKU().setViewSize(w,h)
Ejemplo n.º 4
0
    def onOpenWindow(self, title, w, h):
        logging.info('opening MOAI window: %s @ (%d,%d)' % (str(title), w, h))
        #no argument accepted here, just use full window
        # self.getRuntime().initGLContext()
        from gii.qt.controls.GLWidget import GLWidget
        GLWidget.getSharedWidget().makeCurrent()

        self.originalSize = (w, h)
        self.tryResizeContainer(*self.originalSize)

        size = self.canvas.size()
        w, h = size.width(), size.height()

        getAKU().setScreenSize(w, h)
        getAKU().setViewSize(w, h)
Ejemplo n.º 5
0
	def setOrientationLandscape( self ):
		if self.window.isFloating():
			pass #TODO
		getAKU().setOrientationLandscape()
Ejemplo n.º 6
0
	def setOrientationPortrait( self ):
		if self.window.isFloating():
			pass #TODO
		getAKU().setOrientationPortrait()
Ejemplo n.º 7
0
	def resizeView(self, w,h):
		self.viewWidth  = w
		self.viewHeight = h
		getAKU().setScreenSize(w,h)
		getAKU().setViewSize(w,h)
Ejemplo n.º 8
0
 def setOrientationLandscape(self):
     if self.window.isFloating():
         pass  #TODO
     getAKU().setOrientationLandscape()
Ejemplo n.º 9
0
 def setOrientationPortrait(self):
     if self.window.isFloating():
         pass  #TODO
     getAKU().setOrientationPortrait()
Ejemplo n.º 10
0
 def resizeView(self, w, h):
     self.viewWidth = w
     self.viewHeight = h
     getAKU().setScreenSize(w, h)
     getAKU().setViewSize(w, h)
Ejemplo n.º 11
0
 def resizeView(self, w, h):
     self.viewWidth = w
     self.viewHeight = h
     runtime = self.getRuntime()
     getAKU().setViewSize(w, h)