Function
CoglTexturenew_from_file
Declaration [src]
CoglTexture*
cogl_texture_new_from_file (
const char* filename,
CoglTextureFlags flags,
CoglPixelFormat internal_format,
GError** error
)
Description [src]
Creates a CoglTexture
from an image file.
Available since: | 0.8 |
Deprecated since: | 1.18 |
Use specific constructors such as
|
Parameters
filename |
const char* |
The file to load. |
|
The data is owned by the caller of the function. | |
The string is a NUL terminated UTF-8 string. | |
flags |
CoglTextureFlags |
Optional flags for the texture, or |
|
internal_format |
CoglPixelFormat |
The |
|
error |
GError ** |
The return location for a GError* , or NULL . |
Return value
Returns: | CoglTexture |
A newly created |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |