texture-2d: Add _new_from_file api

This adds a cogl_texture_2d_new_from_file() api since we are planning to
remove cogl_texture_new_from_file() but don't want to loose the
convenience it had.

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit 10e91aa513123ed277a8d45976f8d75445d7dc9c)
This commit is contained in:
Robert Bragg
2013-06-08 02:10:15 +01:00
committed by Neil Roberts
parent fc5d1a8a68
commit aa92110f83
3 changed files with 53 additions and 0 deletions

View File

@ -417,6 +417,7 @@ COGL_TEXTURE_MAX_WASTE
<TITLE>2D textures</TITLE>
CoglTexture2D
cogl_texture_2d_new_with_size
cogl_texture_2d_new_from_file
cogl_texture_2d_new_from_bitmap
cogl_texture_2d_new_from_data
cogl_texture_2d_new_from_foreign