Documentation
¶
Overview ¶
Package texcontainer describes the byte layout of the block-compressed texture container a build packs in place of a source image.
It deliberately depends on nothing. A packaged project keeps the source path for a packed texture, so code that only has to recognize a container or read its dimensions must not link the rendering stack to do it.
Index ¶
Constants ¶
const ( // MagicSize is the length of the container signature. MagicSize = 8 // HeaderSize is the fixed prefix that precedes the payload. HeaderSize = 20 )
Variables ¶
var Magic = [MagicSize]byte{'O', 'N', 'I', 'X', 'T', 'E', 'X', '1'}
Magic identifies the container.
Functions ¶
func Dimensions ¶
Dimensions reads the stored texel dimensions from a container header. It reports false when data is not a complete container header.
Types ¶
This section is empty.