Package com.banuba.sdk.scene
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 class
Layer.CppProxy
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Layer
create(java.lang.String name)
Fabric method for layer creating.void
enableMorphing(boolean enable)
ability for enable/disable morphing in specified layerjava.lang.String
getName()
boolean
isActive()
boolean
isMorphingEnabled()
void
setActive(boolean active)
Set enable/disable layer flag.void
setName(java.lang.String name)
set layer name
-
-
-
Method Detail
-
setName
void setName(@NonNull java.lang.String name)
set layer name- Parameters:
layer
- name (string)
-
getName
@NonNull java.lang.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 java.lang.String name)
Fabric method for layer creating.- Returns:
- created layer (layer).
-
-