Banuba SDK
BNBScene.h
Go to the documentation of this file.
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file was generated by Djinni from scene.djinni
3 
4 #import "BNBComponentType.h"
5 #import "BNBFeatureId.h"
6 #import "BNBFeatureParameter.h"
8 #import "BNBTriggerType.h"
9 #import <Foundation/Foundation.h>
10 @class BNBAssetManager;
11 @class BNBCamera;
12 @class BNBComponent;
13 @class BNBEntity;
14 @class BNBLayer;
15 @class BNBParameter;
16 @class BNBRenderList;
17 
18 
19 /**
20  * A class representing a displayable scene. Aggregates in one place the
21  * hierarchy of Entities with their Components, AssetManager and RenderList
22  * and makes it work all together.
23  */
24 
25 #ifndef DJINNI_EXPORT
26  #define DJINNI_EXPORT __attribute__((__visibility__("default")))
27 #endif
28 
30 @interface BNBScene : NSObject
31 
32 /** Set a new name for a scene. The name could be empty. */
33 - (void)setName:(nonnull NSString *)name;
34 
35 /** Get a scene name. */
36 - (nonnull NSString *)getName;
37 
38 /** Get the root of entities hierarchy. It always exists and has a name "Root". */
39 - (nullable BNBEntity *)getRoot;
40 
41 /** Get the AssetManager of a current scene. It always exists. */
42 - (nullable BNBAssetManager *)getAssetManager;
43 
44 - (void)addLayer:(nullable BNBLayer *)layer;
45 
46 - (nonnull NSArray<BNBLayer *> *)getLayers;
47 
48 /** Get all components present in this scene of specified type */
49 - (nonnull NSArray<BNBComponent *> *)getComponents:(BNBComponentType)type;
50 
51 /** Return first found layer with name `layerName` or NULL if such layer doesn't exist. */
52 - (nullable BNBLayer *)getLayer:(nonnull NSString *)layerName;
53 
54 - (void)removeLayer:(nullable BNBLayer *)layer;
55 
56 - (void)setRenderList:(nullable BNBRenderList *)renderList;
57 
58 - (nullable BNBRenderList *)getRenderList;
59 
60 - (void)clearRenderList;
61 
62 - (nullable BNBCamera *)getCamera;
63 
64 - (void)enableRecognizerFeature:(BNBFeatureId)feature;
65 
66 - (void)disableRecognizerFeature:(BNBFeatureId)feature;
67 
68 - (void)addFeatureParam:(BNBFeatureId)feature
69  params:(nonnull NSArray<BNBFeatureParameter *> *)params;
70 
71 - (void)addEffectEvent:(nonnull NSString *)name
72  params:(nonnull NSDictionary<NSString *, NSString *> *)params;
73 
74 - (BNBTriggerStatusType)getTriggerStatus:(BNBTriggerType)trigger;
75 
76 - (nullable BNBEntity *)createEntity:(nonnull NSString *)name;
77 
78 - (int64_t)getNativeContext;
79 
80 - (int32_t)getSurfaceWidth;
81 
82 - (int32_t)getSurfaceHeight;
83 
84 /**
85  *find global material parameter by name
86  *@param name (string)
87  *@return parameter (parameter) or null
88  */
89 - (nullable BNBParameter *)findGlobalMaterialParameter:(nonnull NSString *)name;
90 
91 @end
-[BNBScene getCamera]
nullable BNBCamera * getCamera()
BNBCamera
Definition: BNBCamera.h:14
BNBParameter
Class, represent shader parameter.
Definition: BNBParameter.h:20
-[BNBScene getRenderList]
nullable BNBRenderList * getRenderList()
-[BNBScene getName]
nonnull NSString * getName()
Get a scene name.
BNBComponent
Definition: BNBComponent.h:21
-[BNBScene getSurfaceHeight]
int32_t getSurfaceHeight()
BNBFeatureParameter
Definition: BNBFeatureParameter.h:17
-[BNBScene getLayers]
nonnull NSArray< BNBLayer * > * getLayers()
-[BNBScene getRoot]
nullable BNBEntity * getRoot()
Get the root of entities hierarchy.
BNBTriggerStatusType.h
-[BNBScene clearRenderList]
void clearRenderList()
DJINNI_EXPORT
#define DJINNI_EXPORT
for order of values in action units array see action_units_indices enum
Definition: BNBActionUnits.h:9
BNBScene
A class representing a displayable scene.
Definition: BNBScene.h:30
BNBLayer
Definition: BNBLayer.h:18
BNBAssetManager
Definition: BNBAssetManager.h:27
BNBRenderList
Definition: BNBRenderList.h:21
-[BNBScene getNativeContext]
int64_t getNativeContext()
-[BNBScene getSurfaceWidth]
int32_t getSurfaceWidth()
-[BNBScene getAssetManager]
nullable BNBAssetManager * getAssetManager()
Get the AssetManager of a current scene.
BNBTriggerType.h
BNBFeatureParameter.h
BNBEntity
Definition: BNBEntity.h:36
BNBFeatureId.h
BNBComponentType.h