Interface Scene

All Known Implementing Classes:
Scene.CppProxy

public interface Scene
A class representing a displayable scene. Aggregates in one place the hierarchy of Entities with their Components, AssetManager and RenderList and makes it work all together.
  • Method Details

    • setName

      void setName​(@NonNull java.lang.String name)
      Set a new name for a scene. The name could be empty.
    • getName

      @NonNull java.lang.String getName()
      Get a scene name.
    • getRoot

      @Nullable Entity getRoot()
      Get the root of entities hierarchy. It always exists and has a name "Root".
    • getAssetManager

      @Nullable AssetManager getAssetManager()
      Get the AssetManager of a current scene. It always exists.
    • addLayer

      void addLayer​(@Nullable Layer layer)
    • getLayers

      @NonNull java.util.ArrayList<Layer> getLayers()
    • getLayer

      @Nullable Layer getLayer​(@NonNull java.lang.String layerName)
      Return first found layer with name `layerName` or NULL if such layer doesn't exist.
    • removeLayer

      void removeLayer​(@Nullable Layer layer)
    • setRenderList

      void setRenderList​(@Nullable RenderList renderList)
    • clearRenderList

      void clearRenderList()