Interface AssetManager

All Known Implementing Classes:
AssetManager.CppProxy

public interface AssetManager
Factory for assets creating and their data uploading.
  • Method Details

    • createImage

      @Nullable Image createImage(@NonNull String name, @NonNull ImageType type)
      create image of given type
      Parameters:
      name - (string): image name
      type - (image_type): image type
      Returns:
      created image (image).
    • createResource

      @Nullable Resource createResource(@NonNull 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 String name, @NonNull SegmentationMaskType type)
    • createProceduralTexture

      @Nullable Image createProceduralTexture(@NonNull String name, @NonNull ProceduralAlgorithmType type)
    • createRenderTarget

      @Nullable RenderTarget createRenderTarget(@NonNull String name)
      creates render target
      Parameters:
      name - (string): render target name
      Returns:
      created render target (render_target).
    • createAudioTrack

      @Nullable AudioTrack createAudioTrack(@NonNull String name)
      creates audio_track
      Parameters:
      name - (string): audio track name
      Returns:
      created audio track (audio_track).
    • createFace

      @Nullable Face createFace(@NonNull String name)
      creates face
      Parameters:
      name - (string): face name
      Returns:
      created face (face).
    • createMorph

      @Nullable Morphing createMorph(@NonNull String name, @NonNull MorphingType type)
      creates morphing
      Parameters:
      name - (string): morphing name
      Returns:
      created morphing (morphing).
    • createStaticMesh

      @Nullable Mesh createStaticMesh(@NonNull String name)
      creates static mesh
      Parameters:
      name - (string): mesh name
      Returns:
      created mesh (mesh).
    • createDynamicMesh

      @Nullable Mesh createDynamicMesh(@NonNull String name, @NonNull String path)
      creates dynamicaly updated mesh
      Parameters:
      name - (string): mesh name
      path - (string): path to mesh
      Returns:
      created mesh (mesh).
    • createHand

      @Nullable Hand createHand(@NonNull String name)
      creates hand
      Parameters:
      name - (string): hand name
      Returns:
      created hand (hand).
    • uploadMeshData

      void uploadMeshData(@Nullable Mesh mesh, @NonNull String fileName)
      upload mesh file
      Parameters:
      mesh - (mesh): mesh
      fileName - (string): file to upload
    • createMaterial

      @Nullable Material createMaterial(@NonNull String name, @NonNull String path)
      creates material
      Parameters:
      name - (string): material name
      path - (string): path to shaders
      Returns:
      created material (material).
    • createMaterialExt

      @Nullable Material createMaterialExt(@NonNull String name, @NonNull String vsPath, @NonNull String fsPath, int instanceCount, @NonNull ArrayList<String> 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): defines list for shader
      Returns:
      created material (material).
    • findImage

      @Nullable Image findImage(@NonNull String name)
      Find image by specified name. Returns null if image not found.
      Parameters:
      name - (string) image name.
    • findRenderTarget

      @Nullable RenderTarget findRenderTarget(@NonNull 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 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 String name)
      Find face by specified name. Returns null if face not found.
      Parameters:
      name - (string) face name.
    • findHand

      @Nullable Hand findHand(@NonNull String name)
      Find hand by specified name. Returns null if hand not found.
      Parameters:
      name - (string) hand name.
    • findMorph

      @Nullable Morphing findMorph(@NonNull String name)
      Find morph by specified name. Returns null if morph not found.
      Parameters:
      name - (string) morph name.
    • findMesh

      @Nullable Mesh findMesh(@NonNull String name)
      Find mesh by specified name. Returns null if mesh not found.
      Parameters:
      name - (string) mesh name.
    • findMaterial

      @Nullable Material findMaterial(@NonNull String name)
      Find material by specified name. Returns null if material not found.
      Parameters:
      name - (string) material name.