Click or drag to resize

TextureFromFile Method

Creates a new texture from a file loaded in memory.

Namespace:  Internal.SharpBgfx
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static Texture FromFile(
	MemoryBlock memory,
	TextureFlags flags = TextureFlags.None,
	int skipMips = 0
)

Parameters

memory
Type: Internal.SharpBgfxMemoryBlock
The content of the file.
flags (Optional)
Type: Internal.SharpBgfxTextureFlags
Flags that control texture behavior.
skipMips (Optional)
Type: SystemInt32
A number of top level mips to skip when parsing texture data.

Return Value

Type: Texture
The newly created texture.
Remarks
This function supports textures in the following container formats: - DDS - KTX - PVR
See Also