Struct AiTexture
Represents an aiTexture struct.
Inherited Members
Namespace: SharpAssimp.Unmanaged
Assembly: SharpAssimp.dll
Syntax
public struct AiTexture
Fields
| Edit this page View SourceData
aiTexel*, array of texel data.
Declaration
public nint Data
Field Value
Type | Description |
---|---|
nint |
Filename
Texture original filename.
Declaration
public AiString Filename
Field Value
Type | Description |
---|---|
AiString |
FormatHint
sbyte[9], format extension hint. Fixed size char is two bytes regardless of encoding. Unmanaged assimp uses a char that maps to one byte. 8 for string + 1 for terminator.
Declaration
public sbyte* FormatHint
Field Value
Type | Description |
---|---|
sbyte* |
Height
Height of the texture.
Declaration
public uint Height
Field Value
Type | Description |
---|---|
uint |
Width
Width of the texture.
Declaration
public uint Width
Field Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceGetFormatHint()
Gets the format hint.
Declaration
public readonly string GetFormatHint()
Returns
Type | Description |
---|---|
string | The format hint |
GetFormatHint(in AiTexture)
Gets the format hint. Use this to avoid struct copy if the string was passed by read-only ref.
Declaration
public static string GetFormatHint(in AiTexture aiTex)
Parameters
Type | Name | Description |
---|---|---|
AiTexture | aiTex | AiTexture |
Returns
Type | Description |
---|---|
string | The format hint |
SetFormatHint(string?)
Sets the format hint.
Declaration
public void SetFormatHint(string? formatHint)
Parameters
Type | Name | Description |
---|---|---|
string | formatHint | Format hint - must be 3 characters or less |