(self)
Load data for all variables at initialization.
Load data for all variables at initialization.
Load data for all variables at initialization .
def load_variables(self):
        """Load data for all variables at initialization."""
        for var in self.get_variables():
            shader_type = var['shader_type']
            # skip uniforms
            if shader_type == 'uniform' or shader_type == 'varying' or shader_type == 'framebuffer':
                continue
            # call load_***(name) to load that variable
            getattr(self, 'load_%s' % shader_type)(var['name'])
def load_variables ( self ) : for var in self . get_variables ( ) : shader_type = var [ 'shader_type' ] # skip uniforms if shader_type == 'uniform' or shader_type == 'varying' or shader_type == 'framebuffer' : continue # call load_***(name) to load that variable getattr ( self , 'load_%s' % shader_type ) ( var [ 'name' ] )