Interface Layer

All Known Implementing Classes:
Layer.CppProxy

public interface Layer
A container for entities, which is needed for explicit grouping entities in order in which they will be sent to render. All morph entities must lay on the same layer.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Layer
    create(String name)
    Fabric method for layer creating.
    void
    enableMorphing(boolean enable)
    ability for enable/disable morphing in specified layer
     
    boolean
     
    boolean
     
    void
    setActive(boolean active)
    Set enable/disable layer flag.
    void
    set layer name
  • Method Details

    • setName

      void setName(@NonNull String name)
      set layer name
      Parameters:
      layer - name (string)
    • getName

      @NonNull String getName()
      Returns:
      layer name (string)
    • setActive

      void setActive(boolean active)
      Set enable/disable layer flag. The disabled layer will not be rendered.
      Parameters:
      active - (bool) activity flag.
    • isActive

      boolean isActive()
      Returns:
      activity flag (bool)
    • enableMorphing

      void enableMorphing(boolean enable)
      ability for enable/disable morphing in specified layer
      Parameters:
      enable - (bool)
    • isMorphingEnabled

      boolean isMorphingEnabled()
      Returns:
      is morphing enable in the current layer
    • create

      @Nullable static Layer create(@NonNull String name)
      Fabric method for layer creating.
      Returns:
      created layer (layer).