Package com.banuba.sdk.scene
Interface AssetManager
-
- All Known Implementing Classes:
AssetManager.CppProxy
public interface AssetManager
Factory for assets creating and their data uploading.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AssetManager.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AudioTrack
createAudioTrack(java.lang.String name)
creates audio_trackMesh
createDynamicMesh(java.lang.String name, java.lang.String path)
creates dynamicaly updated meshFace
createFace(java.lang.String name)
creates faceHand
createHand(java.lang.String name)
creates handImage
createImage(java.lang.String name, ImageType type)
create image of given typeMaterial
createMaterial(java.lang.String name, java.lang.String path)
creates materialMaterial
createMaterialExt(java.lang.String name, java.lang.String vsPath, java.lang.String fsPath, int instanceCount, java.util.ArrayList<java.lang.String> extraDefs)
creates materialMorphing
createMorph(java.lang.String name, MorphingType type)
creates morphingImage
createProceduralTexture(java.lang.String name, ProceduralAlgorithmType type)
RenderTarget
createRenderTarget(java.lang.String name)
creates render targetResource
createResource(java.lang.String filename)
create resource and start async loading in the asset_manager threadpoolImage
createSegmentationMask(java.lang.String name, SegmentationMaskType type)
Mesh
createStaticMesh(java.lang.String name)
creates static meshAudioTrack
findAudioTrack(java.lang.String name)
Find audio track by specified name.Face
findFace(java.lang.String name)
Find face by specified name.Hand
findHand(java.lang.String name)
Find hand by specified name.Image
findImage(java.lang.String name)
Find image by specified name.Material
findMaterial(java.lang.String name)
Find material by specified name.Mesh
findMesh(java.lang.String name)
Find mesh by specified name.Morphing
findMorph(java.lang.String name)
Find morph by specified name.RenderTarget
findRenderTarget(java.lang.String name)
Find render target by specified name.void
uploadMeshData(Mesh mesh, java.lang.String fileName)
upload mesh file
-
-
-
Method Detail
-
createImage
@Nullable Image createImage(@NonNull java.lang.String name, @NonNull ImageType type)
create image of given type- Parameters:
name
- (string): image nametype
- (image_type): image type- Returns:
- created image (image).
-
createResource
@Nullable Resource createResource(@NonNull java.lang.String filename)
create resource and start async loading in the asset_manager threadpool- Parameters:
name
- (resource): resource filename- Returns:
- created resource (resource).
-
createSegmentationMask
@Nullable Image createSegmentationMask(@NonNull java.lang.String name, @NonNull SegmentationMaskType type)
-
createProceduralTexture
@Nullable Image createProceduralTexture(@NonNull java.lang.String name, @NonNull ProceduralAlgorithmType type)
-
createRenderTarget
@Nullable RenderTarget createRenderTarget(@NonNull java.lang.String name)
creates render target- Parameters:
name
- (string): render target name- Returns:
- created render target (render_target).
-
createAudioTrack
@Nullable AudioTrack createAudioTrack(@NonNull java.lang.String name)
creates audio_track- Parameters:
name
- (string): audio track name- Returns:
- created audio track (audio_track).
-
createFace
@Nullable Face createFace(@NonNull java.lang.String name)
creates face- Parameters:
name
- (string): face name- Returns:
- created face (face).
-
createMorph
@Nullable Morphing createMorph(@NonNull java.lang.String name, @NonNull MorphingType type)
creates morphing- Parameters:
name
- (string): morphing name- Returns:
- created morphing (morphing).
-
createStaticMesh
@Nullable Mesh createStaticMesh(@NonNull java.lang.String name)
creates static mesh- Parameters:
name
- (string): mesh name- Returns:
- created mesh (mesh).
-
createDynamicMesh
@Nullable Mesh createDynamicMesh(@NonNull java.lang.String name, @NonNull java.lang.String path)
creates dynamicaly updated mesh- Parameters:
name
- (string): mesh namepath
- (string): path to mesh- Returns:
- created mesh (mesh).
-
createHand
@Nullable Hand createHand(@NonNull java.lang.String name)
creates hand- Parameters:
name
- (string): hand name- Returns:
- created hand (hand).
-
uploadMeshData
void uploadMeshData(@Nullable Mesh mesh, @NonNull java.lang.String fileName)
upload mesh file- Parameters:
mesh
- (mesh): meshfileName
- (string): file to upload
-
createMaterial
@Nullable Material createMaterial(@NonNull java.lang.String name, @NonNull java.lang.String path)
creates material- Parameters:
name
- (string): material namepath
- (string): path to shaders- Returns:
- created material (material).
-
createMaterialExt
@Nullable Material createMaterialExt(@NonNull java.lang.String name, @NonNull java.lang.String vsPath, @NonNull java.lang.String fsPath, int instanceCount, @NonNull java.util.ArrayList<java.lang.String> extraDefs)
creates material- Parameters:
name
- (string): material namevsPath
- (string): path to vertex shaderfsPath
- (string): path to fragment shaderinstanceCount
- (i32): instances countextraDefs
- (list): defines list for shader - Returns:
- created material (material).
-
findImage
@Nullable Image findImage(@NonNull java.lang.String name)
Find image by specified name. Returns null if image not found.- Parameters:
name
- (string) image name.
-
findRenderTarget
@Nullable RenderTarget findRenderTarget(@NonNull java.lang.String name)
Find render target by specified name. Returns null if render target not found.- Parameters:
name
- (string) render target name.
-
findAudioTrack
@Nullable AudioTrack findAudioTrack(@NonNull java.lang.String name)
Find audio track by specified name. Returns null if audio track not found.- Parameters:
name
- (string) audio track name.
-
findFace
@Nullable Face findFace(@NonNull java.lang.String name)
Find face by specified name. Returns null if face not found.- Parameters:
name
- (string) face name.
-
findHand
@Nullable Hand findHand(@NonNull java.lang.String name)
Find hand by specified name. Returns null if hand not found.- Parameters:
name
- (string) hand name.
-
findMorph
@Nullable Morphing findMorph(@NonNull java.lang.String name)
Find morph by specified name. Returns null if morph not found.- Parameters:
name
- (string) morph name.
-
findMesh
@Nullable Mesh findMesh(@NonNull java.lang.String name)
Find mesh by specified name. Returns null if mesh not found.- Parameters:
name
- (string) mesh name.
-
findMaterial
@Nullable Material findMaterial(@NonNull java.lang.String name)
Find material by specified name. Returns null if material not found.- Parameters:
name
- (string) material name.
-
-