Method
StTextureCacheload_file_to_cogl_texture
Declaration [src]
CoglTexture*
st_texture_cache_load_file_to_cogl_texture (
StTextureCache* cache,
CoglContext* context,
GFile* file,
gint paint_scale,
gfloat resource_scale
)
Description [src]
This function synchronously loads the given file path
into a COGL texture. On error, a warning is emitted and NULL is returned.
This method is not directly available to language bindings.
Parameters
context-
Type:
CoglContextA
CoglContext.The data is owned by the caller of the method. file-
Type:
GFileA
GFilein supported image format.The data is owned by the caller of the method. paint_scale-
Type:
gintScale factor of the display.
resource_scale-
Type:
gfloatResource scale factor.
Return value
Type: CoglTexture
A new CoglTexture.
| The caller of the method takes ownership of the returned data, and is responsible for freeing it. |