Documentation ¶
Index ¶
Constants ¶
View Source
const ( DXT1 = 1 DXT3 = 3 DXT5 = 5 )
View Source
const ( // Similar to GIF. Uses 8-bit values as index to 256-color palette, ideal for low-res bitmaps. TextureRaw = 1 // Uses S3 Texture Compression algorithm (S3TC/DXT/DXTC) TextureS3 = 2 // Data is stored as a plain ARGB stream. Used when every bit of quality is required. TextureUncompressed = 3 )
Variables ¶
View Source
var BLP2 [4]byte
Functions ¶
func Decode ¶
func Decode(file io.ReadSeeker) (*image.NRGBA, error)
Decode a BLP stream from a file-like interface into an *image.NRGBA (satisfies image.Image)
func DecodeBytes ¶
Decode a BLP data buffer into an *image.NRGBA (satisfies image.Image)
Types ¶
Click to show internal directories.
Click to hide internal directories.