Click or drag to resize
Ab4d.SharpEngine logo

TextureLoaderCreateTextureAsync(String, Scene, ActionGpuImage, IBitmapIO, Boolean, Boolean, ActionException) Method

Note: This API is now obsolete.


Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntax
C#
[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(
	string fileName,
	Scene scene,
	Action<GpuImage> textureCreatedCallback,
	IBitmapIO? bitmapIO = null,
	bool generateMipMaps = true,
	bool useSceneCache = false,
	Action<Exception>? textureCreationFailedCallback = null
)

Parameters

fileName  String
 
scene  Scene
 
textureCreatedCallback  ActionGpuImage
 
bitmapIO  IBitmapIO  (Optional)
 
generateMipMaps  Boolean  (Optional)
 
useSceneCache  Boolean  (Optional)
 
textureCreationFailedCallback  ActionException  (Optional)
 
See Also