A class representing a displayable scene. More...
#import <BNBScene.h>
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 |
(nonnull NSArray< BNBComponent * > *) | - getComponents: |
Get all components present in this scene of specified type. More... | |
(nullable BNBLayer *) | - getLayer: |
Return first found layer with name layerName or NULL if such layer doesn't exist. More... | |
(void) | - removeLayer: |
(void) | - setRenderList: |
(nullable BNBRenderList *) | - getRenderList |
(void) | - clearRenderList |
(nullable BNBCamera *) | - getCamera |
(void) | - enableRecognizerFeature: |
(void) | - disableRecognizerFeature: |
(void) | - addFeatureParam:params: |
(void) | - addEffectEvent:params: |
(BNBTriggerStatusType) | - getTriggerStatus: |
(nullable BNBEntity *) | - createEntity: |
(int64_t) | - getNativeContext |
(int32_t) | - getSurfaceWidth |
(int32_t) | - getSurfaceHeight |
(nullable BNBParameter *) | - findGlobalMaterialParameter: |
find global material parameter by name More... | |
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 30 of file BNBScene.h.
- (void) addEffectEvent: | (nonnull NSString *) | name | |
params: | (nonnull NSDictionary< NSString *, NSString * > *) | params | |
- (void) addFeatureParam: | (BNBFeatureId) | feature | |
params: | (nonnull NSArray< BNBFeatureParameter * > *) | params | |
- (void) addLayer: | (nullable BNBLayer *) | layer |
- (void) clearRenderList |
- (nullable BNBEntity *) createEntity: | (nonnull NSString *) | name |
- (void) disableRecognizerFeature: | (BNBFeatureId) | feature |
- (void) enableRecognizerFeature: | (BNBFeatureId) | feature |
- (nullable BNBParameter *) findGlobalMaterialParameter: | (nonnull NSString *) | name |
find global material parameter by name
name | (string) |
- (nullable BNBAssetManager *) getAssetManager |
Get the AssetManager of a current scene.
It always exists.
- (nullable BNBCamera *) getCamera |
- (nonnull NSArray<BNBComponent *> *) getComponents: | (BNBComponentType) | type |
Get all components present in this scene of specified type.
- (nullable BNBLayer *) getLayer: | (nonnull NSString *) | layerName |
Return first found layer with name layerName
or NULL if such layer doesn't exist.
- (nonnull NSArray<BNBLayer *> *) getLayers |
- (nonnull NSString *) getName |
Get a scene name.
- (int64_t) getNativeContext |
- (nullable BNBRenderList *) getRenderList |
- (nullable BNBEntity *) getRoot |
Get the root of entities hierarchy.
It always exists and has a name "Root".
- (int32_t) getSurfaceHeight |
- (int32_t) getSurfaceWidth |
- (BNBTriggerStatusType) getTriggerStatus: | (BNBTriggerType) | trigger |
- (void) removeLayer: | (nullable BNBLayer *) | layer |
- (void) setName: | (nonnull NSString *) | name |
Set a new name for a scene.
The name could be empty.
- (void) setRenderList: | (nullable BNBRenderList *) | renderList |