================
= TEXTURE MAPS =
================

texture create data <width> <height> <border> <data>
	- creates a new texture map from RGB data.  Width and height must each
	  be such that when 2 * border is subtracted, the result is an integral
	  power of 2.  Data is the pixel data for the texture map and should be
	  a list of {r g b} components, where 0 <= r, g, b <= 255. The pixel
	  data should be arranged in row-major order.
	- border must be 0 or 1.
	- only RGB textures are supported.
	- returns a texture id.

texture create image <src_x> <src_y> <width> <height> <border> <image>
	- creates a new texture map from a photo image.  Texture map data is
	  read from the rectangular region of the image delimited by
	  (src_x,src_y) and (src_x+width,src_y+height).  Width and height must
	  each be such that when 2 * border is subtracted, the result is an
	  integral power of 2.  Image must be of type "photo".
	- border must be 0 or 1.
	- only RGB textures are supported.
	- returns a texture id.

texture destroy <textureID>
	- destroys a texture map.  Models using the texture map will not be
	  updated until the next time they are redrawn (as a result of some
	  other operation.)

texture list
	- lists the ID's of existing texture maps.
