Banuba SDK
BNBScene.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from scene.djinni
3 
4 #import <Foundation/Foundation.h>
5 @class BNBAssetManager;
6 @class BNBEntity;
7 @class BNBLayer;
8 @class BNBRenderList;
9 
10 
11 /**
12  * A class representing a displayable scene. Aggregates in one place the
13  * hierarchy of Entities with their Components, AssetManager and RenderList
14  * and makes it work all together.
15  */
16 @interface BNBScene : NSObject
17 
18 /** Set a new name for a scene. The name could be empty. */
19 - (void)setName:(nonnull NSString *)name;
20 
21 /** Get a scene name. */
22 - (nonnull NSString *)getName;
23 
24 /** Get the root of entities hierarchy. It always exists and has a name "Root". */
25 - (nullable BNBEntity *)getRoot;
26 
27 /** Get the AssetManager of a current scene. It always exists. */
28 - (nullable BNBAssetManager *)getAssetManager;
29 
30 - (void)addLayer:(nullable BNBLayer *)layer;
31 
32 - (nonnull NSArray<BNBLayer *> *)getLayers;
33 
34 /** Return first found layer with name `layerName` or NULL if such layer doesn't exist. */
35 - (nullable BNBLayer *)getLayer:(nonnull NSString *)layerName;
36 
37 - (void)removeLayer:(nullable BNBLayer *)layer;
38 
39 - (void)setRenderList:(nullable BNBRenderList *)renderList;
40 
41 - (void)clearRenderList;
42 
43 @end
-[BNBScene getName]
nonnull NSString * getName()
Get a scene name.
-[BNBScene getLayers]
nonnull NSArray< BNBLayer * > * getLayers()
-[BNBScene getRoot]
nullable BNBEntity * getRoot()
Get the root of entities hierarchy.
-[BNBScene clearRenderList]
void clearRenderList()
BNBScene
A class representing a displayable scene.
Definition: BNBScene.h:17
BNBLayer
Definition: BNBLayer.h:9
BNBAssetManager
Definition: BNBAssetManager.h:14
BNBRenderList
Definition: BNBRenderList.h:12
-[BNBScene getAssetManager]
nullable BNBAssetManager * getAssetManager()
Get the AssetManager of a current scene.
BNBEntity
A structure element of the scene.
Definition: BNBEntity.h:31