Documentation ¶
Index ¶
- Variables
- func DumpFlatDataToFile(destFhnd io.WriteSeeker, lumpReader io.Reader, iwad lumps.ArchiveReader, ...) (int64, error)
- func DumpLBMDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, ...) (int64, error)
- func DumpLpicDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, ...) (int64, error)
- func DumpPatchDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, ...) (int64, error)
- func DumpPicDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, ...) (int64, error)
- func DumpTransPatchDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, ...) (int64, error)
- func GetImageFromFlatData(lumpReader io.Reader, iwad lumps.ArchiveReader, width int, height int, ...) (*image.RGBA, error)
- func GetImageFromLpicData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
- func GetImageFromPatchData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
- func GetImageFromPicData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
- func GetImageFromTransPatchData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
- func ROTTGuessFileTypeAndSubdir(entry *WADEntry) (string, string)
- type LBMHeader
- type LumpHeader
- type Palette
- type PatchHeader
- type RGB
- type RottLpicHeader
- type RottPatchHeader
- type RottPicHeader
- type WADEntry
- type WADHeader
- type WADIterator
- type WADReader
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeOneOffs = map[string][2]string{ "SND_ON": [2]string{"patch", "widgets"}, "SND_OFF": [2]string{"patch", "widgets"}, "BLOCK1": [2]string{"patch", "block"}, "BLOCK2": [2]string{"patch", "block"}, "BLOCK3": [2]string{"patch", "block"}, "CACHEBAR": [2]string{"patch", "misc"}, "INFO1": [2]string{"patch", "info"}, "INFO2": [2]string{"patch", "info"}, "INFO3": [2]string{"patch", "info"}, "INFO4": [2]string{"patch", "info"}, "INFO5": [2]string{"patch", "info"}, "INFO6": [2]string{"patch", "info"}, "INFO7": [2]string{"patch", "info"}, "INFO8": [2]string{"patch", "info"}, "INFO9": [2]string{"patch", "info"}, "DEADJOE": [2]string{"patch", "boss-deaths"}, "DEADROBO": [2]string{"patch", "boss-deaths"}, "DEADSTEV": [2]string{"patch", "boss-deaths"}, "DEADTOM": [2]string{"patch", "boss-deaths"}, "HSWITCH5": [2]string{"tpatch", "masked"}, "HSWITCH8": [2]string{"tpatch", "masked"}, "HSWTICH4": [2]string{"patch", "masked"}, "HSWITCH6": [2]string{"patch", "masked"}, "HSWITCH7": [2]string{"patch", "masked"}, "HSWTCH9": [2]string{"patch", "masked"}, "ENTRANCE": [2]string{"wall", "wall"}, "EXIT": [2]string{"wall", "wall"}, "PAL": [2]string{"raw", "misc"}, "LICENSE": [2]string{"raw", "misc"}, "IMFREE": [2]string{"lbm", "misc"}, "BOOTBLOD": [2]string{"lbm", "misc"}, "BOOTNORM": [2]string{"lbm", "misc"}, "SVENDOR": [2]string{"lbm", "misc"}, "DEADBOSS": [2]string{"lbm", "misc"}, "MMBK": [2]string{"pic", "misc"}, "PAUSED": [2]string{"pic", "misc"}, "WAIT": [2]string{"pic", "misc"}, "TNUMB": [2]string{"pic", "misc"}, "BATTP": [2]string{"pic", "misc"}, "DOOR2": [2]string{"wall", "doors"}, "EDOOR": [2]string{"wall", "doors"}, "RAMDOOR1": [2]string{"wall", "doors"}, "SDOOR4": [2]string{"wall", "doors"}, "SNADOOR": [2]string{"wall", "doors"}, "SNDOOR": [2]string{"wall", "doors"}, "SNKDOOR": [2]string{"wall", "doors"}, "TNADOOR": [2]string{"wall", "doors"}, "TNDOOR": [2]string{"wall", "doors"}, "TNKDOOR": [2]string{"wall", "doors"}, "TRIDOOR1": [2]string{"wall", "doors"}, "SIDE8": [2]string{"wall", "side"}, "SIDE21": [2]string{"wall", "side"}, "LOCK1": [2]string{"wall", "side"}, "LOCK2": [2]string{"wall", "side"}, "LOCK3": [2]string{"wall", "side"}, "LOCK4": [2]string{"wall", "side"}, "SIDE13": [2]string{"wall", "side"}, "SIDE16": [2]string{"wall", "side"}, "SIDE17": [2]string{"wall", "side"}, "KEY1": [2]string{"pic", "keys"}, "KEY2": [2]string{"pic", "keys"}, "KEY3": [2]string{"pic", "keys"}, "KEY4": [2]string{"pic", "keys"}, }
Functions ¶
func DumpFlatDataToFile ¶
func DumpFlatDataToFile(destFhnd io.WriteSeeker, lumpReader io.Reader, iwad lumps.ArchiveReader, width int, height int, transparent bool) (int64, error)
convert palette image data to PNG before writing
func DumpLBMDataToFile ¶
func DumpLBMDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (int64, error)
convert expression of freedom from euclidian oppression to PNG
func DumpLpicDataToFile ¶
func DumpLpicDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (int64, error)
convert floor and ceiling data to PNG
func DumpPatchDataToFile ¶
func DumpPatchDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (int64, error)
convert patch data to PNG before writing
func DumpPicDataToFile ¶
func DumpPicDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (int64, error)
convert VGA planar data to PNG
func DumpTransPatchDataToFile ¶
func DumpTransPatchDataToFile(destFhnd io.WriteSeeker, lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (int64, error)
convert translucent patch data to PNG before writing
func GetImageFromFlatData ¶
func GetImageFromLpicData ¶
func GetImageFromLpicData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
func GetImageFromPatchData ¶
func GetImageFromPatchData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
func GetImageFromPicData ¶
func GetImageFromPicData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
func GetImageFromTransPatchData ¶
func GetImageFromTransPatchData(lumpInfo lumps.ArchiveEntry, lumpReader io.Reader, iwad lumps.ArchiveReader) (*image.RGBA, error)
Types ¶
type LumpHeader ¶
func (*LumpHeader) NameString ¶
func (l *LumpHeader) NameString() string
type PatchHeader ¶
type PatchHeader struct { OrigSize int16 Width int16 Height int16 LeftOffset int16 TopOffset int16 }
sprites (guns, actors, etc.)
type RottLpicHeader ¶
floors and ceilings
type RottPatchHeader ¶
type RottPatchHeader struct { OrigSize int16 Width int16 Height int16 LeftOffset int16 TopOffset int16 Transparency int16 }
wall and sky textures
type RottPicHeader ¶
type WADEntry ¶
type WADEntry struct { Number int LumpName string Reader *WADReader LumpHeader *LumpHeader }
func NewWADEntry ¶
func NewWADEntry(name string, number int, header *LumpHeader, reader *WADReader) *WADEntry
func (*WADEntry) GuessFileTypeAndSubdir ¶
type WADIterator ¶
type WADIterator struct { Reader *WADReader // contains filtered or unexported fields }
func (*WADIterator) Next ¶
func (w *WADIterator) Next() lumps.ArchiveEntry
Click to show internal directories.
Click to hide internal directories.