Click or drag to resize
Ab4d.SharpEngine logo

AssimpConverterCreateTexture Method

CreateGpuTexture method creates a GpuTexture from texture file name and sets that to the specified material.

Namespace: Ab4d.SharpEngine.Assimp
Assembly: Ab4d.SharpEngine.Assimp (in Ab4d.SharpEngine.Assimp.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
protected virtual void CreateTexture(
	string textureFileName,
	string? texturesFilePath,
	Func<string, Stream?>? resolveResourceFunc,
	Material material
)

Parameters

textureFileName  String
textureFileName as written in model file
texturesFilePath  String
textures path as specified to the AssimpConverter (can be null)
resolveResourceFunc  FuncString, Stream
callback function to resolve textureFileName to stream (can be null)
material  Material
Material that will get the read texture (Usually StandardMaterial)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Assimp.AssimpConverter.CreateTexture(System.String,System.String,System.Func{System.String,System.IO.Stream},Ab4d.SharpEngine.Materials.Material)"]

See Also