Class DefaultDownloadProvider
Default IDownloadProvider implementation
Inherited Members
Namespace: GLTFast.Loading
Syntax
public class DefaultDownloadProvider : IDownloadProvider
Methods
Request(Uri)
Sends a URI request and waits for its completion.
Declaration
public async Task<IDownload> Request(Uri url)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | URI to request |
Returns
Type | Description |
---|---|
Task<IDownload> | Object representing the request |
Implements
RequestTexture(Uri, Boolean)
Sends a URI request to load a texture
Declaration
public async Task<ITextureDownload> RequestTexture(Uri url, bool nonReadable)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | URI to request |
Boolean | nonReadable | If true, resulting texture is not CPU readable (uses less memory) |
Returns
Type | Description |
---|---|
Task<ITextureDownload> | Object representing the request |