Difference between revisions of "TEXTURES"

From ECWolf Wiki
(→‎Defining Textures: Removed outdated information.)
Line 8: Line 8:
 
* ''' patch "<lump>", <x>, <y> '''
 
* ''' patch "<lump>", <x>, <y> '''
 
:Adds the specified patch at the specified coordinate to the canvas.
 
:Adds the specified patch at the specified coordinate to the canvas.
 
== Examples ==
 
texture "GSTONEA", 128, 64
 
{
 
patch "GSTONEA1", 0, 0
 
patch "GSTONEA2", 64, 0
 
}
 
  
 
== See Also ==
 
== See Also ==

Revision as of 13:28, 2 October 2012

The textures lump is used to define textures and map them to an indexed tile.

Defining Textures

A texture is a composition of one or more patches.

The syntax is texture "<name>", <canvas-width>, <canvas-height> followed by braces containing properties about the texture.

Texture Properties

  • patch "<lump>", <x>, <y>
Adds the specified patch at the specified coordinate to the canvas.

See Also