Documentation ¶
Index ¶
- Variables
- func MIPName(lumpName string) [16]byte
- func PalettedImageToQuakePic(img *image.Paletted) ([]byte, error)
- func RGBAImageToMIPTexture(img *image.RGBA, lumpName string) ([]byte, error)
- type Lump
- type LumpHeader
- type MIPTexture
- type QKPicHeader
- type WAD2Entry
- type WAD2Header
- type WAD2Iterator
- type WAD2Reader
- type WADWriter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LT_RAW int8 = 0x40 LT_PICTURE int8 = 0x42 LT_MIPTEX int8 = 0x44 )
Functions ¶
Types ¶
type LumpHeader ¶
type LumpHeader struct { FilePos int32 Size int32 MemSize int32 Type int8 Compression int8 Dummy int16 Name [16]byte }
func (*LumpHeader) NameString ¶
func (l *LumpHeader) NameString() string
type MIPTexture ¶
type QKPicHeader ¶
type WAD2Entry ¶
type WAD2Entry struct { Header *LumpHeader Reader *WAD2Reader LumpName string }
func NewWAD2Entry ¶
func NewWAD2Entry(name string, header *LumpHeader, reader *WAD2Reader) *WAD2Entry
func (*WAD2Entry) GuessFileTypeAndSubdir ¶
type WAD2Header ¶
type WAD2Iterator ¶
type WAD2Iterator struct { Reader *WAD2Reader // contains filtered or unexported fields }
func (*WAD2Iterator) Next ¶
func (w *WAD2Iterator) Next() lumps.ArchiveEntry
type WAD2Reader ¶
type WAD2Reader struct { Header WAD2Header Directory []LumpHeader DirectoryByName map[string]int // contains filtered or unexported fields }
func NewWAD2Reader ¶
func NewWAD2Reader(fhnd io.ReadSeeker) (*WAD2Reader, error)
func (*WAD2Reader) GetEntry ¶
func (w *WAD2Reader) GetEntry(name string) (lumps.ArchiveEntry, error)
func (*WAD2Reader) List ¶
func (w *WAD2Reader) List() lumps.ArchiveIterator
func (*WAD2Reader) Type ¶
func (w *WAD2Reader) Type() string
Click to show internal directories.
Click to hide internal directories.