Protected
Readonly
glThe height of the original (non-mipmapped) texture image data or 'undefined' if the image has not yet completed loading.
The WebGL texture ID used to draw this texture
The internal object used by WebGL to draw this texture
The width of the original (non-mipmapped) texture image data or 'undefined' if the image has not yet completed loading.
Static
Private
numCallback 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)
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 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
Generated using TypeDoc
Represents an image texture