Package playn.scene

Class RootLayer

All Implemented Interfaces:
AutoCloseable, Iterable<Layer>, Closeable

public class RootLayer extends GroupLayer
Serves as the root of the scene graph. This is just a GroupLayer with minor tweaks to ensure that when layers are added to it, they transition properly to the "added to scene graph" state.
  • Constructor Details

    • RootLayer

      public RootLayer()
      Creates an unclipped root layer. This is almost always what you want.
    • RootLayer

      public RootLayer(float width, float height)
      Creates a root layer clipped to the specified dimensions. This is rarely what you want.