#import <BNBAssetManager.h>
Definition at line 27 of file BNBAssetManager.h.
◆ createAudioTrack:
- (nullable BNBAudioTrack *) createAudioTrack: |
|
(nonnull NSString *) |
name |
|
creates audio_track
- Parameters
-
name | (string): audio track name |
- Returns
- created audio track (audio_track).
◆ createDynamicMesh:path:
- (nullable BNBMesh *) createDynamicMesh: |
|
(nonnull NSString *) |
name |
path: |
|
(nonnull NSString *) |
path |
|
|
| |
creates dynamicaly updated mesh
- Parameters
-
name | (string): mesh name |
path | (string): path to mesh |
- Returns
- created mesh (mesh).
◆ createFace:
- (nullable BNBFace *) createFace: |
|
(nonnull NSString *) |
name |
|
creates face
- Parameters
-
- Returns
- created face (face).
◆ createHand:
- (nullable BNBHand *) createHand: |
|
(nonnull NSString *) |
name |
|
creates hand
- Parameters
-
- Returns
- created hand (hand).
◆ createImage:type:
- (nullable BNBImage *) createImage: |
|
(nonnull NSString *) |
name |
type: |
|
(BNBImageType) |
type |
|
|
| |
create image of given type
- Parameters
-
name | (string): image name |
type | (image_type): image type |
- Returns
- created image (image).
◆ createMaterial:path:
- (nullable BNBMaterial *) createMaterial: |
|
(nonnull NSString *) |
name |
path: |
|
(nonnull NSString *) |
path |
|
|
| |
creates material
- Parameters
-
name | (string): material name |
path | (string): path to shaders |
- Returns
- created material (material).
◆ createMaterialExt:vsPath:fsPath:instanceCount:extraDefs:
- (nullable BNBMaterial *) createMaterialExt: |
|
(nonnull NSString *) |
name |
vsPath: |
|
(nonnull NSString *) |
vsPath |
fsPath: |
|
(nonnull NSString *) |
fsPath |
instanceCount: |
|
(int32_t) |
instanceCount |
extraDefs: |
|
(nonnull NSArray< NSString * > *) |
extraDefs |
|
|
| |
creates material
- Parameters
-
name | (string): material name |
vsPath | (string): path to vertex shader |
fsPath | (string): path to fragment shader |
instanceCount | (i32): instances count |
extraDefs | (list<string>): defines list for shader |
- Returns
- created material (material).
◆ createMorph:type:
- (nullable BNBMorphing *) createMorph: |
|
(nonnull NSString *) |
name |
type: |
|
(BNBMorphingType) |
type |
|
|
| |
creates morphing
- Parameters
-
name | (string): morphing name |
- Returns
- created morphing (morphing).
◆ createProceduralTexture:type:
- (nullable BNBImage *) createProceduralTexture: |
|
(nonnull NSString *) |
name |
type: |
|
(BNBProceduralAlgorithmType) |
type |
|
|
| |
◆ createRenderTarget:
- (nullable BNBRenderTarget *) createRenderTarget: |
|
(nonnull NSString *) |
name |
|
creates render target
- Parameters
-
name | (string): render target name |
- Returns
- created render target (render_target).
◆ createResource:
- (nullable BNBResource *) createResource: |
|
(nonnull NSString *) |
filename |
|
create resource and start async loading in the asset_manager threadpool
- Parameters
-
name | (resource): resource filename |
- Returns
- created resource (resource).
◆ createSegmentationMask:type:
- (nullable BNBImage *) createSegmentationMask: |
|
(nonnull NSString *) |
name |
type: |
|
(BNBSegmentationMaskType) |
type |
|
|
| |
◆ createStaticMesh:
- (nullable BNBMesh *) createStaticMesh: |
|
(nonnull NSString *) |
name |
|
creates static mesh
- Parameters
-
- Returns
- created mesh (mesh).
◆ findAudioTrack:
- (nullable BNBAudioTrack *) findAudioTrack: |
|
(nonnull NSString *) |
name |
|
Find audio track by specified name.
Returns null if audio track not found.
- Parameters
-
name | (string) audio track name. |
◆ findFace:
- (nullable BNBFace *) findFace: |
|
(nonnull NSString *) |
name |
|
Find face by specified name.
Returns null if face not found.
- Parameters
-
◆ findHand:
- (nullable BNBHand *) findHand: |
|
(nonnull NSString *) |
name |
|
Find hand by specified name.
Returns null if hand not found.
- Parameters
-
◆ findImage:
- (nullable BNBImage *) findImage: |
|
(nonnull NSString *) |
name |
|
Find image by specified name.
Returns null if image not found.
- Parameters
-
◆ findMaterial:
- (nullable BNBMaterial *) findMaterial: |
|
(nonnull NSString *) |
name |
|
Find material by specified name.
Returns null if material not found.
- Parameters
-
name | (string) material name. |
◆ findMesh:
- (nullable BNBMesh *) findMesh: |
|
(nonnull NSString *) |
name |
|
Find mesh by specified name.
Returns null if mesh not found.
- Parameters
-
◆ findMorph:
- (nullable BNBMorphing *) findMorph: |
|
(nonnull NSString *) |
name |
|
Find morph by specified name.
Returns null if morph not found.
- Parameters
-
◆ findRenderTarget:
Find render target by specified name.
Returns null if render target not found.
- Parameters
-
name | (string) render target name. |
◆ uploadMeshData:fileName:
- (void) uploadMeshData: |
|
(nullable BNBMesh *) |
mesh |
fileName: |
|
(nonnull NSString *) |
fileName |
|
|
| |
upload mesh file
- Parameters
-
mesh | (mesh): mesh |
fileName | (string): file to upload |
The documentation for this class was generated from the following file: