Inserts a texture into the texture cache.
This can be useful if you want to cache a texture from a custom or unhandled URI type, or you want to override a particular texture.
If the image is already in the cache, this texture will replace it. A reference will be taken on the given texture.
this | |
uri |
A URI or local file path |
texture |
A VertexBufferIndices to a texture |