 |
TextureLoaderCreateTextureAsync(Stream, String, Scene, ActionGpuImage, IBitmapIO, Boolean, Boolean, ActionException) Method |
Note: This API is now obsolete.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax[ObsoleteAttribute("CreateTextureAsync method that use callback and is not awaitable was renamed to CreateTexture. Use CreateTextureAsync with await, or use CreateTexture when you need a callback action.")]
public static void CreateTextureAsync(
Stream fileStream,
string? streamFileName,
Scene scene,
Action<GpuImage> textureCreatedCallback,
IBitmapIO? bitmapIO = null,
bool generateMipMaps = true,
bool useSceneCache = false,
Action<Exception>? textureCreationFailedCallback = null
)Parameters
- fileStream Stream
-
- streamFileName String
-
- scene Scene
-
- textureCreatedCallback ActionGpuImage
-
- bitmapIO IBitmapIO (Optional)
-
- generateMipMaps Boolean (Optional)
-
- useSceneCache Boolean (Optional)
-
- textureCreationFailedCallback ActionException (Optional)
-
See Also