get_cogl_texture


Description:

public unowned Handle get_cogl_texture (string uri)

Create a VertexBufferIndices representing a texture of the specified image.

Adds the image to the cache if the image had not been previously loaded. Subsequent calls with the same image URI/path will return the VertexBufferIndices of the previously loaded image with an increased reference count.

Parameters:

this

A TextureCache

uri

A URI or path to an image file

Returns:

a VertexBufferIndices to the cached texture