void (*image_prepare) (void *engine, void *image);
void *(*image_surface_noscale_new) (void *engine, int w, int h, int alpha);
- void (*image_surface_noscale_region_get)(void *engine, void *image, int *x, int *y, int *w, int *h);
int (*image_native_init) (void *engine, Evas_Native_Surface_Type type);
void (*image_native_shutdown) (void *engine, Evas_Native_Surface_Type type);
return evas_gl_common_image_surface_noscale_new(gl_context, w, h, alpha);
}
-static void
-eng_image_surface_noscale_region_get(void *engine EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
-{
- Evas_GL_Image *im = image;
-
- if (im)
- {
- *x = im->tex->x;
- *y = im->tex->y;
- *w = im->w;
- *h = im->h;
- return;
- }
-
- *x = 0;
- *y = 0;
- *w = 0;
- *h = 0;
-}
-
//------------------------------------------------//
static GL_Filter_Apply_Func
ORD(image_prepare);
ORD(image_surface_noscale_new);
- ORD(image_surface_noscale_region_get);
ORD(font_cache_flush);
ORD(font_cache_set);
}
static void
-eng_image_surface_noscale_region_get(void *engdata EINA_UNUSED, void *image, int *x, int *y, int *w, int *h)
-{
- RGBA_Image *im = image;
-
- if (im)
- {
- *x = 0;
- *y = 0;
- *w = im->cache_entry.w;
- *h = im->cache_entry.h;
- return;
- }
- else
- {
- *x = 0;
- *y = 0;
- *w = 0;
- *h = 0;
- }
-}
-
-static void
_image_flip_horizontal(DATA32 *pixels_out, const DATA32 *pixels_in,
int iw, int ih)
{
eng_image_data_slice_add,
eng_image_prepare,
eng_image_surface_noscale_new,
- eng_image_surface_noscale_region_get,
eng_image_native_init,
eng_image_native_shutdown,
eng_image_native_set,