insert: @self: A #TextureCache @uri: A URI or local file path @texture: A #CoglHandle to a texture 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.
(&self, uri: &str, texture: Handle)
| 249 | /// reference will be taken on the given texture. |
| 250 | /// |
| 251 | fn insert(&self, uri: &str, texture: Handle) { |
| 252 | // unsafe { TODO: call ffi:texture_cache_insert() } |
| 253 | } |
| 254 | |
| 255 | /// insert_meta: |
| 256 | /// @self: A #TextureCache |