module

WritingAdditions::TextureX

Defines how wall patches from the WAD file should combine to form wall textures.

Instance methods

write(file : String | Path) : UInt32

Writes a texture map given an output io and returns the size of the written lump

Writes a texture map in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
my_wad.texmapx.["MyTexMap"].write("Path/To/texturex.lmp")
write(io : IO) : UInt32

Writes a texture map given an output io and returns the size of the written lump

Writes a texture map in my_wad to a file:

my_wad = WAD.read("Path/To/Wad")
File.open(".Path/To/texturex.lmp", "w+") do |file|
  my_wad.texmaps["MyTexMap"].write(file)
end