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

#import <BNBAssetManager.h>

Inheritance diagram for BNBAssetManager:

Instance Methods

(nullable BNBImage *) - createImage:type:
 create image of given type More...
 
(nullable BNBResource *) - createResource:
 create resource and start async loading in the asset_manager threadpool More...
 
(nullable BNBImage *) - createSegmentationMask:type:
 
(nullable BNBImage *) - createProceduralTexture:type:
 
(nullable BNBRenderTarget *) - createRenderTarget:
 creates render target More...
 
(nullable BNBAudioTrack *) - createAudioTrack:
 creates audio_track More...
 
(nullable BNBFace *) - createFace:
 creates face More...
 
(nullable BNBMorphing *) - createMorph:type:
 creates morphing More...
 
(nullable BNBMesh *) - createStaticMesh:
 creates static mesh More...
 
(nullable BNBMesh *) - createDynamicMesh:path:
 creates dynamicaly updated mesh More...
 
(nullable BNBHand *) - createHand:
 creates hand More...
 
(void) - uploadMeshData:fileName:
 upload mesh file More...
 
(nullable BNBMaterial *) - createMaterial:path:
 creates material More...
 
(nullable BNBMaterial *) - createMaterialExt:vsPath:fsPath:instanceCount:extraDefs:
 creates material More...
 
(nullable BNBImage *) - findImage:
 Find image by specified name. More...
 
(nullable BNBRenderTarget *) - findRenderTarget:
 Find render target by specified name. More...
 
(nullable BNBAudioTrack *) - findAudioTrack:
 Find audio track by specified name. More...
 
(nullable BNBFace *) - findFace:
 Find face by specified name. More...
 
(nullable BNBHand *) - findHand:
 Find hand by specified name. More...
 
(nullable BNBMorphing *) - findMorph:
 Find morph by specified name. More...
 
(nullable BNBMesh *) - findMesh:
 Find mesh by specified name. More...
 
(nullable BNBMaterial *) - findMaterial:
 Find material by specified name. More...
 

Detailed Description

Definition at line 27 of file BNBAssetManager.h.

Method Documentation

◆ 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
name(string): face name
Returns
created face (face).

◆ createHand:

- (nullable BNBHand *) createHand: (nonnull NSString *)  name

creates hand

Parameters
name(string): hand name
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
name(string): mesh name
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
name(string) face name.

◆ findHand:

- (nullable BNBHand *) findHand: (nonnull NSString *)  name

Find hand by specified name.

Returns null if hand not found.

Parameters
name(string) hand name.

◆ findImage:

- (nullable BNBImage *) findImage: (nonnull NSString *)  name

Find image by specified name.

Returns null if image not found.

Parameters
name(string) image name.

◆ 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
name(string) mesh name.

◆ findMorph:

- (nullable BNBMorphing *) findMorph: (nonnull NSString *)  name

Find morph by specified name.

Returns null if morph not found.

Parameters
name(string) morph name.

◆ findRenderTarget:

- (nullable BNBRenderTarget *) findRenderTarget: (nonnull NSString *)  name

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: