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:
CoglContext
A
CoglContext
.The data is owned by the caller of the method. file
-
Type:
GFile
A
GFile
in supported image format.The data is owned by the caller of the method. paint_scale
-
Type:
gint
Scale factor of the display.
resource_scale
-
Type:
gfloat
Resource 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. |