TextureInfo

Texture Info - Stores info about each texture

Constructor

new TextureInfo(image, glTextureopt)

Create a TextureInfo, called automatically by the engine

Parameters:
NameTypeAttributesDescription
imageHTMLImageElement | OffscreenCanvas
glTextureWebGLTexture<optional>

WebGL texture

Members

glTexture

Properties
TypeDescription
WebGLTexture

WebGL texture

image

Properties
TypeDescription
HTMLImageElement

image source

size

Properties
TypeDescription
Vector2

size of the image

sizeInverse

Properties
TypeDescription
Vector2

inverse of the size, cached for rendering