Private
constructorPrivate
cachePrivate
defaultPrivate
defaultPrivate
glStatic
Private
_instanceStatic
Private
initializedStatic
defaultReturn the default random RGB texture
Static
defaultReturn the default white 1x1 texture
Static
instanceReturn the singleton instance of the texture cache
Static
sizeReturn the number of textures in the cache
Create or return a texture from the cache by name
URL or filename path of texture image, or ArrayBufferView holding texture
Enable texture filtering and mipmaps (default true)
Flip the texture vertically (default true)
Unique key, only used for ArrayBuffer textures
Extra options to pass to twgl.createTexture, see https://twgljs.org/docs/module-twgl.html#.TextureOptions
Static
clearStatic
initGenerated using TypeDoc
A caching texture manager It is instantiated with a WebGL context and then used to load and cache textures