Destroys this base texture
Frees the texture from WebGL memory without destroying this texture object.
Frees the texture from WebGL memory without destroying this texture object. This means you can still use the texture later which will upload it to GPU memory again.
Set to true once the base texture has successfully loaded.
Set to true once the base texture has successfully loaded. This is never true if the underlying source fails to load or has no texture data.
The height of the base texture set when the image has loaded
TODO
Set to true if the source is currently loading.
Set to true if the source is currently loading. If an Image source is loading the 'loaded' or 'error' event will be dispatched when the operation ends. An underyling source that is immediately-available bypasses loading entirely.
Load a source.
Load a source. If the source is not-immediately-available, such as an image that needs to be downloaded, then the 'loaded' or 'error' event will be dispatched in the future and hasLoaded will remain false after this call.
the source object of the texture.
Set this to true if a mipmap of this texture needs to be generated.
Set this to true if a mipmap of this texture needs to be generated. This value needs to be set before the texture is used Also the texture must be a power of two size to work.
Controls if RGB channels should be pre-multiplied by Alpha (WebGL only)
Used to store the actual height of the source of this texture
Used to store the actual width of the source of this texture
The Resolution of the texture.
The scale mode to apply when scaling this texture
The scale mode to apply when scaling this texture
The image source that is used to create the texture.
The image source that is used to create the texture.
an image or the canvas
Updates the texture on all the webgl renderers, this also assumes the src has changed.
Changes the source image of the texture.
Changes the source image of the texture. The original source must be an Image element.
the path of the image
The width of the base texture set when the image has loaded
A texture stores the information that represents an image. All textures have a base texture.