GuavaTexture
public final class GuavaTexture
Summary
Public methods |
|
|---|---|
static final @NonNull ListenableFuture<@NonNull Texture> |
@MainThreadPublic factory for a Texture, asynchronously loading a preprocessed texture from a |
Public methods
createTextureAsync
@MainThread
public static final @NonNull ListenableFuture<@NonNull Texture> createTextureAsync(@NonNull Session session, @NonNull Path path)
Public factory for a Texture, asynchronously loading a preprocessed texture from a Path relative to the application's assets/ folder.
Currently, only URLs and relative paths from the assets/ directory are supported.
| Parameters | |
|---|---|
@NonNull Session session |
|
@NonNull Path path |
The Path of the |
| Returns | |
|---|---|
@NonNull ListenableFuture<@NonNull Texture> |
a ListenableFuture |
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |