Banuba SDK
Instance Methods | List of all members
BNBScene Class Reference

A class representing a displayable scene. More...

#import <BNBScene.h>

Inheritance diagram for BNBScene:

Instance Methods

(void) - setName:
 Set a new name for a scene. More...
 
(nonnull NSString *) - getName
 Get a scene name. More...
 
(nullable BNBEntity *) - getRoot
 Get the root of entities hierarchy. More...
 
(nullable BNBAssetManager *) - getAssetManager
 Get the AssetManager of a current scene. More...
 
(void) - addLayer:
 
(nonnull NSArray< BNBLayer * > *) - getLayers
 
(nullable BNBLayer *) - getLayer:
 Return first found layer with name layerName or NULL if such layer doesn't exist. More...
 
(void) - removeLayer:
 
(void) - setRenderList:
 
(void) - clearRenderList
 

Detailed Description

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.

Definition at line 16 of file BNBScene.h.

Method Documentation

◆ addLayer:

- (void) addLayer: (nullable BNBLayer *)  layer

◆ clearRenderList

- (void) clearRenderList

◆ getAssetManager

- (nullable BNBAssetManager *) getAssetManager

Get the AssetManager of a current scene.

It always exists.

◆ getLayer:

- (nullable BNBLayer *) getLayer: (nonnull NSString *)  layerName

Return first found layer with name layerName or NULL if such layer doesn't exist.

◆ getLayers

- (nonnull NSArray<BNBLayer *> *) getLayers

◆ getName

- (nonnull NSString *) getName

Get a scene name.

◆ getRoot

- (nullable BNBEntity *) getRoot

Get the root of entities hierarchy.

It always exists and has a name "Root".

◆ removeLayer:

- (void) removeLayer: (nullable BNBLayer *)  layer

◆ setName:

- (void) setName: (nonnull NSString *)  name

Set a new name for a scene.

The name could be empty.

◆ setRenderList:

- (void) setRenderList: (nullable BNBRenderList *)  renderList

The documentation for this class was generated from the following file: