(self)
Paint the scene.
Paint the scene.
Paint the scene .
def paint(self):
        """Paint the scene."""
        
        # non-FBO rendering
        if not self.fbos:
            self.clear()
            for name, visual_renderer in self.visual_renderers.iteritems():
                visual_renderer.paint()
        
        
        # render each FBO separately, then non-VBO
        else:
            for fbo in self.fbos:
                FrameBuffer.bind(fbo)
                
                # fbo index
                ifbo = self.fbos.index(fbo)
                
                # clear
                self.clear()
                
                # paint all visual renderers
                for name, visual_renderer in self.visual_renderers.iteritems():
                    if visual_renderer.framebuffer == ifbo:
                        # print ifbo, visual_renderer
                        visual_renderer.paint()
    
            # finally, paint screen
            FrameBuffer.unbind()
    
            # render screen (non-FBO) visuals
            self.clear()
            for name, visual_renderer in self.visual_renderers.iteritems():
                if visual_renderer.framebuffer == 'screen':
                    # print "screen", visual_renderer
                    visual_renderer.paint()
def paint ( self ) : # non-FBO rendering if not self . fbos : self . clear ( ) for name , visual_renderer in self . visual_renderers . iteritems ( ) : visual_renderer . paint ( ) # render each FBO separately, then non-VBO else : for fbo in self . fbos : FrameBuffer . bind ( fbo ) # fbo index ifbo = self . fbos . index ( fbo ) # clear self . clear ( ) # paint all visual renderers for name , visual_renderer in self . visual_renderers . iteritems ( ) : if visual_renderer . framebuffer == ifbo : # print ifbo, visual_renderer visual_renderer . paint ( ) # finally, paint screen FrameBuffer . unbind ( ) # render screen (non-FBO) visuals self . clear ( ) for name , visual_renderer in self . visual_renderers . iteritems ( ) : if visual_renderer . framebuffer == 'screen' : # print "screen", visual_renderer visual_renderer . paint ( )