(self, slice=None)
Bind all attributes of the visual for the given slice.
        This method is used during rendering.
Bind all attributes of the visual for the given slice.
        This method is used during rendering.
Bind all attributes of the visual for the given slice . This method is used during rendering .
def bind_attributes(self, slice=None):
        """Bind all attributes of the visual for the given slice.
        This method is used during rendering."""
        # find all visual variables with shader type 'attribute'
        attributes = self.get_variables('attribute')
        # for each attribute, bind the sub buffer corresponding to the given
        # slice
        for variable in attributes:
            loc = variable['location']
            if loc < 0:
                log_debug(("Unable to bind attribute '%s', probably because "
                "it is not used in the shaders.") % variable['name'])
                continue
            variable['sliced_attribute'].bind(slice)
            Attribute.set_attribute(loc, variable['ndim'])
def bind_attributes ( self , slice = None ) : # find all visual variables with shader type 'attribute' attributes = self . get_variables ( 'attribute' ) # for each attribute, bind the sub buffer corresponding to the given # slice for variable in attributes : loc = variable [ 'location' ] if loc < 0 : log_debug ( ( "Unable to bind attribute '%s', probably because " "it is not used in the shaders." ) % variable [ 'name' ] ) continue variable [ 'sliced_attribute' ] . bind ( slice ) Attribute . set_attribute ( loc , variable [ 'ndim' ] )