Crate vtflib

Source

Structs§

BoundVtfFile
A bound vtf file ready for manipulation. Only one vtf file can be bound at a time. A bound vtf file can be either manually unbound, or automatically when it is dropped.
EmptyImageBuilder
A builder for a new empty image.
ImageFlags
VTF image header flags
ImageFormatInfo
Information about an image format.
NormalMapConversionSettings
Settings for normal map generation.
Rgba8888ImageBuilder
A builder for an image from existing RGBA8888 data.
VtfFile
A VTF file. Must be bound before it can be worked on.
VtfGuard
Enforces that only one VtfFile is bound at a time. Only one of these can exist at any given time. This struct is !Send + !Sync since the library is not thread-safe.
VtfLib
Represents initialized library. Only one of these can exist at any given time. This struct is !Send + !Sync since the library is not thread-safe.

Enums§

CubeMapFace
VTF image cubemap face indices
DxtQuality
Error
FloatOption
Floating point library configuration options.
HeightConversionMethod
Normal map height conversion methods
ImageFormat
VTFLib’s supported image formats.
IntegerOption
Integer library configuration options.
KernelFilter
Normal map creation kernel sizes
MipmapFilter
Mipmap reduction filters
NormalAlphaResult
Normal map alpha channel handling
ResizeMethod
Image resize methods
ResourceType
Resource type identifiers
SharpenFilter
Mipmap sharpen filters

Type Aliases§

Result