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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Layer
Fabric method for layer creating.void
enableMorphing
(boolean enable) ability for enable/disable morphing in specified layergetName()
boolean
isActive()
boolean
void
setActive
(boolean active) Set enable/disable layer flag.void
set layer name
-
Method Details
-
setName
set layer name- Parameters:
layer
- name (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
Fabric method for layer creating.- Returns:
- created layer (layer).
-