(self)
Initialize the renderer.
Initialize the renderer.
Initialize the renderer .
def initialize(self):
        """Initialize the renderer."""
        # print the renderer information
        for key, value in GLVersion.get_renderer_info().iteritems():
            if key is not None and value is not None:
                log_debug(key + ": " + value)
        # initialize the renderer options using the options set in the Scene
        self.set_renderer_options()
        # create the VisualRenderer objects
        self.visual_renderers = OrderedDict()
        for visual in self.get_visuals():
            name = visual['name']
            self.visual_renderers[name] = GLVisualRenderer(self, visual)
            
        # detect FBO
        self.fbos = []
        for name, vr in self.visual_renderers.iteritems():
            fbos = vr.get_variables('framebuffer')
            if fbos:
                self.fbos.extend([fbo['buffer'] for fbo in fbos])
def initialize ( self ) : # print the renderer information for key , value in GLVersion . get_renderer_info ( ) . iteritems ( ) : if key is not None and value is not None : log_debug ( key + ": " + value ) # initialize the renderer options using the options set in the Scene self . set_renderer_options ( ) # create the VisualRenderer objects self . visual_renderers = OrderedDict ( ) for visual in self . get_visuals ( ) : name = visual [ 'name' ] self . visual_renderers [ name ] = GLVisualRenderer ( self , visual ) # detect FBO self . fbos = [ ] for name , vr in self . visual_renderers . iteritems ( ) : fbos = vr . get_variables ( 'framebuffer' ) if fbos : self . fbos . extend ( [ fbo [ 'buffer' ] for fbo in fbos ] )