From 4b105deb3581ebfa8acbc7992f24477d382ad993 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 26 May 2009 18:25:00 +0100 Subject: [PATCH] [deprecated defines] Adds some missing cogl_texture_* deprecated defines To assist people porting code from 0.8, the cogl_texture_* functions that have been replaced now have defines that give some hint as to how they should be replaced. --- cogl-deprecated.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cogl-deprecated.h b/cogl-deprecated.h index 41e77b3d6..3ccac603d 100644 --- a/cogl-deprecated.h +++ b/cogl-deprecated.h @@ -26,4 +26,12 @@ #define cogl_color cogl_color_REPLACED_BY_cogl_set_source_color #define cogl_enable_depth_test cogl_enable_depth_test_RENAMED_TO_cogl_set_depth_test_enabled +#define cogl_texture_rectangle \ + cogl_texture_rectangle_REPLACE_BY_cogl_set_source_texture_plus_cogl_rectangle_with_texture_coords + +#define cogl_texture_multiple_rectangles \ + cogl_texture_multiple_rectangles_REPLACED_BY_cogl_set_source_texture_plus_cogl_rectangles_with_texture_coords + +#define cogl_texture_polygon cogl_texture_polygon_REPLACED_BY_cogl_set_source_texture_plus_cogl_polygon + #endif