Click or drag to resize
Ab4d.SharpEngine logo

ObjFileToSceneNodesConverterCreateTexture Method

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

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

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)
standardMaterial  StandardMaterial
StandardMaterial that will get the read texture
Remarks

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

See Also