[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]


    NAME
        DisposeLayerInfo -- Return all memory for LayerInfo to memory pool

    SYNOPSIS
        DisposeLayerInfo( li )
                          a0

        void DisposeLayerInfo( struct layer_info *);

    FUNCTION
        return LayerInfo and any other memory attached to this LayerInfo
        to memory allocator.

        Note: if you wish to delete the layers associated with this layer_info
            structure, remember to call deletelayer() for each of the layers
            before calling DisposeLayerInfo().

    INPUTS
        li - pointer to LayerInfo structure

    EXAMPLE

        -- delete the layers associated this layer_info structure --

        DeleteLayer(li,simple_layer);
        DeleteLayer(li,smart_layer);

        -- see documentation on deletelayer about deleting superbitmap layers --
        my_super_bitmap_ptr = super_layer->SuperBitMap;
        DeleteLayer(li,super_layer);

        -- now dispose of the layer_info structure itself --
        DisposeLayerInfo(li);


    BUGS

    SEE ALSO
        deletelayer(), graphics/layers.h