Difference between revisions of "TEXTURES"

From ECWolf Wiki
m (See also)
(So basically the whole page was mostly useless.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
The textures lump is used to define textures and map them to an indexed tile.
+
The textures lump is used to define composited textures. The lump is supported by code from ZDoom and should be mostly identical to [[ZDoom:TEXTURES|ZDoom's TEXTURES]] lump (note that ECWolf does not support deprecated features).
== Defining Textures ==
 
A texture is a composition of one or more patches.  At this time it is required that the height of a texture be 64 pixels and the width be a multiple of 64 up to 256.  If the width is 64 all four sides of the tile is the same.  If the width is 128 north and south will use the first 64 pixels and east and west use the 2nd 64 pixels.  For 192 the pattern is north, east, and south with west using the same texture as north.  For 256 all four sides are defined in the order north, east, south, west.
 
  
The syntax is '' texture "<name>", <canvas-width>, <canvas-height> '' followed by braces containing properties about the texture.
+
ECWolf does add the ability to assign textures to art indexes for art screens. It is not recommended that you use this feature since graphics can be given by name.  The syntax is "'''artindex''' ''number'', ''texture''".
 
 
== Texture Properties ==
 
* ''' patch "<lump>", <x>, <y> '''
 
: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 ==
 
* [[ZDoom:TEXTURES|Textures page on the ZDoom wiki]] (ECWolf does not support deprecated features.)
 
  
 
[[Category:Special Lumps]]
 
[[Category:Special Lumps]]

Latest revision as of 13:31, 2 October 2012

The textures lump is used to define composited textures. The lump is supported by code from ZDoom and should be mostly identical to ZDoom's TEXTURES lump (note that ECWolf does not support deprecated features).

ECWolf does add the ability to assign textures to art indexes for art screens. It is not recommended that you use this feature since graphics can be given by name. The syntax is "artindex number, texture".