Package com.banuba.sdk.scene
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.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Scene.CppProxy
-
Method Summary
Modifier and Type Method Description void
addLayer(Layer layer)
void
clearRenderList()
AssetManager
getAssetManager()
Get the AssetManager of a current scene.Layer
getLayer(java.lang.String layerName)
Return first found layer with name `layerName` or NULL if such layer doesn't exist.java.util.ArrayList<Layer>
getLayers()
java.lang.String
getName()
Get a scene name.Entity
getRoot()
Get the root of entities hierarchy.void
removeLayer(Layer layer)
void
setName(java.lang.String name)
Set a new name for a scene.void
setRenderList(RenderList renderList)
-
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
Get the root of entities hierarchy. It always exists and has a name "Root". -
getAssetManager
Get the AssetManager of a current scene. It always exists. -
addLayer
-
getLayers
-
getLayer
Return first found layer with name `layerName` or NULL if such layer doesn't exist. -
removeLayer
-
setRenderList
-
clearRenderList
void clearRenderList()
-