|
TextureLoaderCreateTexture(String, Scene, IBitmapIO, Boolean, Boolean) Method |
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static GpuImage CreateTexture(
string fileName,
Scene scene,
IBitmapIO? bitmapIO = null,
bool generateMipMaps = true,
bool useSceneCache = false
)
Parameters
- fileName String
- file name
- scene Scene
- Scene
- bitmapIO IBitmapIO (Optional)
- Optional IBitmapIO that is used to load the texture. When null, then the DefaultBitmapIOis used
- generateMipMaps Boolean (Optional)
- when true (by default) then mip maps will be created for the GpuImage. This takes longer to create the GpuImage but improves the rendering performance and quality of shown texture.
- useSceneCache Boolean (Optional)
- when true (false by default) than before loading the image the Scene's cache is checked if this file was already loaded. Also the create GpuImage is cached by the Scene's cache
Return Value
GpuImagecreated GpuImage
See Also