Constructor
new TextureInfo(image, glTextureopt)
Create a TextureInfo, called automatically by the engine
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
image | HTMLImageElement | | ||
glTexture | WebGLTexture | <optional> | WebGL texture |
- Source
Members
glTexture
PropertiesType | Description |
---|---|
WebGLTexture | WebGL texture |
- Source
image
PropertiesType | Description |
---|---|
HTMLImageElement | image source |
- Source
size
PropertiesType | Description |
---|---|
Vector2 | size of the image |
- Source
sizeInverse
PropertiesType | Description |
---|---|
Vector2 | inverse of the size, cached for rendering |
- Source