read.quake1miptex: Read a Quake mipmap texture from a WAD2 file.

View source: R/read_wad.R

read.quake1miptexR Documentation

Read a Quake mipmap texture from a WAD2 file.

Description

Read a Quake mipmap texture from a WAD2 file.

Usage

read.quake1miptex(filepath, at_offset = 0L)

Arguments

filepath

character string, path to WAD file.

at_offset

integer, the index in the WAD file where the texture starts.

Value

a 'qmiptex' instance, its like a wall with shorter name field (16 instead of 32) and some fields (anim_name, flags, contents, value) missing.

Examples

## Not run: 
    qm = read.quake1miptex("~/knave.wad", at_offset = 1317632);
    plotwal.mipmap(qm, apply_palette = pal_q1());

## End(Not run)


dfsp-spirit/wal documentation built on Feb. 5, 2024, 1:59 p.m.