Layers may be grouped in layer containers (LayerContainer). Each Layer belongs to a single LayerContainer, accessible via the method Layer::Container. A layer container maintains a hierarchy of parent-child relationships between layers.
Changing which container a layer belongs to is done through the layer container methods.
A layer container can also be used to create layers via the LayerContainer::CreateLayer() method.
A TexturePool may be converted to a LayerContainer and vice versa: