Interface AssetManager

  • All Known Implementing Classes:
    AssetManager.CppProxy

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

      • createImage

        @Nullable
        Image createImage​(@NonNull
                          java.lang.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
                                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 name
        path - (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): mesh
        fileName - (string): file to upload
      • createMaterial

        @Nullable
        Material createMaterial​(@NonNull
                                java.lang.String name,
                                @NonNull
                                java.lang.String path)
        creates material
        Parameters:
        name - (string): material name
        path - (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 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
                        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.