Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/cairo_x11 Modified Files: evas_engine.c Log Message: 1. add new api calls to 1. set a "native surface" for image objects. this currently does nothing and i have kept it VEEERY generic it's a pointer to a native surface which can be just about anything - each engine will probably define a format of its own you need to use VIA the native surface type. 2. add calls to set/get colorspace - moving this down into the engine level. so far engines do nothing at all with it - but api is there. 3. clean up gl engine a bit - make it more standard. =================================================================== RCS file: /cvs/e/e17/libs/evas/src/modules/engines/cairo_x11/evas_engine.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- evas_engine.c 30 Sep 2006 10:18:34 -0000 1.9 +++ evas_engine.c 9 Dec 2006 08:52:08 -0000 1.10 @@ -86,6 +86,10 @@ static void eng_image_draw(void *data, void *context, void *surface, void *image, int src_x, int src_y, int src_w, int src_h, int dst_x, int dst_y, int dst_w, int dst_h, int smooth); static char *eng_image_comment_get(void *data, void *image, char *key); static char *eng_image_format_get(void *data, void *image); +static void eng_image_colorspace_set(void *data, void *image, int cspace); +static int eng_image_colorspace_get(void *data, void *image); +static void eng_image_native_set(void *data, void *image, void *native); +static void *eng_image_native_get(void *data, void *image); static void eng_image_cache_flush(void *data); static void eng_image_cache_set(void *data, int bytes); static int eng_image_cache_get(void *data); @@ -199,6 +203,10 @@ eng_image_draw, eng_image_comment_get, eng_image_format_get, + eng_image_colorspace_set, + eng_image_colorspace_get, + eng_image_native_set, + eng_image_native_get, /* image cache funcs */ eng_image_cache_flush, eng_image_cache_set, @@ -1168,6 +1176,28 @@ /* FIXME */ re = (Render_Engine *)data; + return NULL; +} + +static void +eng_image_colorspace_set(void *data, void *image, int cspace) +{ +} + +static int +eng_image_colorspace_get(void *data, void *image) +{ + return EVAS_COLORSPACE_ARGB8888; +} + +static void +eng_image_native_set(void *data, void *image, void *native) +{ +} + +static void * +eng_image_native_get(void *data, void *image) +{ return NULL; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs