Class: TEX.Texture

TEX.TEX.Texture(imageData, name)

new TEX.Texture(imageData, name)

The main Tex class. The constructor collects the HTMLImageElement and its name. This information can then be used later on when creating your texture buffer. See TEX.initBuffer for an example of how to use the newly created texture.
Parameters:
Name Type Description
imageData Object HTMLImageElement representation of an image file
name String Name of the HTMLImageElement
Source:

Members

image :HTMLImageElement

Stores the HTMLImageElement
Type:
  • HTMLImageElement
Source:

name :String

Stores the name of the image
Type:
  • String
Source: