Skip to main content

Crate source_vtf

Crate source_vtf 

Source
Expand description

Pure Rust access to Valve Texture Format files

Reads PC VTF 7.0 through 7.5 without copying: thumbnails, resources and every mip, frame, face and slice are slices of the original bytes

Structs§

Header
RawImage
One 2D image: a mip of one frame, face and depth slice, or the thumbnail
Resource
ResourceTag
Resource type ID, the low 24 bits of a dictionary entry
TextureFlags
Flags stored in the VTF header
Vtf
A parsed VTF over borrowed or owned file bytes

Enums§

Error
ImageFormat
Image formats, numbered as in VTF 7.5
ResourceLocation
Version

Type Aliases§

OwnedVtf
A Vtf that owns its underlying byte buffer in heap memory.
Result