Create a new instance of a texture.
Protected ReadonlyglThe height of the original (non-mipmapped) texture image data or 'undefined' if the image has not yet completed loading.
The internal object used by WebGL to draw this texture -- provides each texture a unique id.
The width of the original (non-mipmapped) texture image data or 'undefined' if the image has not yet completed loading.
Callback function for image loaded events
HTML DOM image element produced by loading the image texture
Original URL the image was loaded from (used as an internal identifier for the image asset)
Callback function for when the requested image cannot be found (load error)
Original URL the image was loaded from (used as an internal identifier for the errored image asset)
Load an image into this texture.
URL to load the texture from (can be absolute, e.g. "http://unlikely-url.com/some-image.jpg", or relative, e.g. "./some-image.jpg"). Can be null to start out with, in which case the texture will be empty.
Copies the pixel data from an ImageData source into the texture
An ImageData object with the same width and height as the texture
Control the magnification filter (sampling if a texture is shown at greater than its original size)
Use linear filtering
Control the minification filter (sampling if a texture is shown at less than its original size)
Use linear filtering
Use mipmapping
Copies the pixel data from an ImageData source into a portion of the texture, placing it as a sub-image within the texture
An ImageData object with width and height that are the same size or smaller than the texture
An offset in the x-direction within the texture where the top-left corner of imageData should be placed
An offset in the y-direction within the texture where the top-left corner of imageData should be placed
Set the wrapping mode for the texture.
Repeat the texture beyond its bounds or just show it once
Represents an image texture
Texture