Class GtfTexture
Represents a texture in a GTF file. Provides properties and methods related to DDS file conversion.
Inherited Members
Namespace: GtfDdsSharp
Assembly: GtfDdsSharp.dll
Syntax
public class GtfTexture
Constructors
| Name | Description |
|---|---|
| GtfTexture(GtfImage, int) | Initializes a new instance of the GtfTexture class from the given GTF file and texture index. |
Fields
| Name | Description |
|---|---|
| Alignment | The byte boundary at which GTF textures are aligned. |
Properties
| Name | Description |
|---|---|
| DdsFileSize | Gets the size of the DDS file produced by converting this texture. |
| DdsHeader | Gets the DDS header used for conversion. |
| DdsImageSize | Gets the size of the DDS image produced by converting this texture. |
| Image | Gets the containing GTF file. |
| Layouts | Gets the layout buffer used for conversion. |
| Texture | Gets the corresponding texture attribute from the GTF file. |
Methods
| Name | Description |
|---|---|
| ConvertToDds() | Converts the texture to a DDS file and writes it to a byte array. |
| ConvertToDds(byte*, uint) | Converts the texture to a DDS file and writes it to the specified memory address. |
| ConvertToDds(byte[]) | Converts the texture to a DDS file and writes it to the specified array. |
| ConvertToDds(byte[], int, int) | Converts the texture to a DDS file and writes it to the specified array region. |
| ConvertToDds(Stream) | Converts the texture to a DDS file and writes it to the specified stream. |
| ConvertToDds(nint, uint) | Converts the texture to a DDS file and writes it to the specified memory address. |
| ConvertToDds(Span<byte>) | Converts the texture to a DDS file and writes it to the specified region of memory. |
| ConvertToDds(string) | Converts the texture to a DDS file and writes it to the specified file. |