Basic image texture object wraps a texture from a img DOM element
Support for GIF animations without playback controls.
Create JSON description for texture, serializes image used in the texture Texture serialization is different inside nunuStudio, the Texture class does not serialize any image data.
Should be called after updating the source of the texture.
Will copy the source data to the texture for upload to the GPU.
Indicates where the center of rotation is. To rotate around the center point set this value to (0.5, 0.5).
Flag used to know is the texture has been disposed.
Is used to control animation when using a gif as a texture.
Flips the image's Y axis to match the WebGL texture coordinate space.
DOM element attached to the texture
Array of user-specified mipmaps (optional).
Name of the texture (doesn't need to be unique).
How much a single repetition of the texture is offset from the beginning, in each direction U and V.
False by default, which is the norm for PNG images. Set to true if the RGB values have been stored premultiplied by alpha.
How many times the texture is repeated across the surface, in each direction U and V. If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should also be set to .
How much the texture is rotated around the center point, in radians. Postive values are counter-clockwise.
Source image of the texture.
UUID of this object instance. This gets automatically assigned, so this shouldn't be edited.