}
RDI(level);
- RD(" draw map4\n");
+ RD(" draw map\n");
if (rendered)
{
re = (Render_Engine *)data;
#ifdef BUILD_PIPE_RENDER
- evas_common_pipe_map4_begin(surface);
+ evas_common_pipe_map_begin(surface);
#endif
evas_buffer_outbuf_buf_push_updated_region(re->ob, surface, x, y, w, h);
evas_buffer_outbuf_buf_free_region_for_update(re->ob, surface);
eng_image_scale_hint_get,
/* more font draw functions */
eng_font_last_up_to_pos,
- NULL, // ORD(image_map4_draw);
+ NULL, // ORD(image_map_draw);
NULL, // ORD(image_map_surface_new);
NULL, // ORD(image_map_surface_free);
NULL, // eng_image_content_hint_set - software doesn't use it
ORD(image_scale_hint_set);
ORD(image_scale_hint_get);
-// ORD(image_map4_draw);
+// ORD(image_map_draw);
// ORD(image_map_surface_new);
// ORD(image_map_surface_free);
#endif
static void
-evas_engine_dfb_image_map4_draw(void *data __UNUSED__, void *context, void *surface, void *image, RGBA_Map_Point *p, int smooth, int level)
+evas_engine_dfb_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
{
Render_Engine *re = (Render_Engine*) data;
DirectFB_Engine_Image_Entry *deie = image;
ORD(image_scale_hint_set);
ORD(image_scale_hint_get);
- ORD(image_map4_draw);
+ ORD(image_map_draw);
ORD(image_map_surface_new);
ORD(image_map_surface_free);
re = (Render_Engine *)data;
#ifdef BUILD_PIPE_RENDER
- evas_common_pipe_map4_begin(surface);
+ evas_common_pipe_map_begin(surface);
#endif
evas_fb_outbuf_fb_push_updated_region(re->ob, surface, x, y, w, h);
evas_fb_outbuf_fb_free_region_for_update(re->ob, surface);
int x, int y, int w, int h,
int r, int g, int b, int a,
Eina_Bool smooth);
-void evas_gl_common_context_image_map4_push(Evas_GL_Context *gc,
- Evas_GL_Texture *tex,
- RGBA_Map_Point *p,
- int clip, int cx, int cy, int cw, int ch,
- int r, int g, int b, int a,
- Eina_Bool smooth,
- Eina_Bool tex_only,
- Eina_Bool yuv);
+void evas_gl_common_context_image_map_push(Evas_GL_Context *gc,
+ Evas_GL_Texture *tex,
+ int npoints,
+ RGBA_Map_Point *p,
+ int clip, int cx, int cy, int cw, int ch,
+ int r, int g, int b, int a,
+ Eina_Bool smooth,
+ Eina_Bool tex_only,
+ Eina_Bool yuv);
void evas_gl_common_context_flush(Evas_GL_Context *gc);
int evas_gl_common_shader_program_init(Evas_GL_Program *p,
void evas_gl_common_image_free(Evas_GL_Image *im);
Evas_GL_Image *evas_gl_common_image_surface_new(Evas_GL_Context *gc, unsigned int w, unsigned int h, int alpha);
void evas_gl_common_image_dirty(Evas_GL_Image *im, unsigned int x, unsigned int y, unsigned int w, unsigned int h);
-void evas_gl_common_image_map4_draw(Evas_GL_Context *gc, Evas_GL_Image *im, RGBA_Map_Point *p, int smooth, int level);
+void evas_gl_common_image_map_draw(Evas_GL_Context *gc, Evas_GL_Image *im, int npoints, RGBA_Map_Point *p, int smooth, int level);
void evas_gl_common_image_draw(Evas_GL_Context *gc, Evas_GL_Image *im, int sx, int sy, int sw, int sh, int dx, int dy, int dw, int dh, int smooth);
void *evas_gl_font_texture_new(void *gc, RGBA_Font_Glyph *fg);
}
void
-evas_gl_common_context_image_map4_push(Evas_GL_Context *gc,
- Evas_GL_Texture *tex,
- RGBA_Map_Point *p,
- int clip, int cx, int cy, int cw, int ch,
- int r, int g, int b, int a,
- Eina_Bool smooth, Eina_Bool tex_only,
- Eina_Bool yuv)
+evas_gl_common_context_image_map_push(Evas_GL_Context *gc,
+ Evas_GL_Texture *tex,
+ int npoints,
+ RGBA_Map_Point *p,
+ int clip, int cx, int cy, int cw, int ch,
+ int r, int g, int b, int a,
+ Eina_Bool smooth, Eina_Bool tex_only,
+ Eina_Bool yuv)
{
int pnum, nv, nc, nu, nu2, nu3, nt, i;
const int points[6] = { 0, 1, 2, 0, 2, 3 };
if (!tex->alpha) blend = 0;
if (a < 255) blend = 1;
+ if (npoints != 4)
+ {
+ // FIXME: nash - you didnt fix this for n points. its still all 4 point stuff!!! grrrr.
+ abort();
+ }
if ((A_VAL(&(p[0].col)) < 0xff) || (A_VAL(&(p[1].col)) < 0xff) ||
(A_VAL(&(p[2].col)) < 0xff) || (A_VAL(&(p[3].col)) < 0xff))
blend = 1;
if ((tex->im) && (tex->im->native.data) && (!tex->im->native.yinvert))
{
// FIXME: handle yinvert
- ERR("not handling inverted y case for map4");
+ ERR("not handling inverted y case for map");
}
cmul = ARGB_JOIN(a, r, g, b);
}
void
-evas_gl_common_image_map4_draw(Evas_GL_Context *gc, Evas_GL_Image *im,
- RGBA_Map_Point *p, int smooth, int level __UNUSED__)
+evas_gl_common_image_map_draw(Evas_GL_Context *gc, Evas_GL_Image *im,
+ int npoints, RGBA_Map_Point *p, int smooth, int level __UNUSED__)
{
RGBA_Draw_Context *dc;
int r, g, b, a;
if ((im->cs.space == EVAS_COLORSPACE_YCBCR422P601_PL) ||
(im->cs.space == EVAS_COLORSPACE_YCBCR422P709_PL))
yuv = 1;
- evas_gl_common_context_image_map4_push(gc, im->tex, p,
- c, cx, cy, cw, ch,
- r, g, b, a, smooth, im->tex_only,
- yuv);
+ evas_gl_common_context_image_map_push(gc, im->tex, npoints, p,
+ c, cx, cy, cw, ch,
+ r, g, b, a, smooth, im->tex_only,
+ yuv);
}
void
}
static void
-eng_image_map4_draw(void *data __UNUSED__, void *context, void *surface, void *image, RGBA_Map_Point *p, int smooth, int level)
+eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
{
// XXX
}
ORD(image_scale_hint_set);
ORD(image_scale_hint_get);
- ORD(image_map4_draw);
+ ORD(image_map_draw);
ORD(image_map_surface_new);
ORD(image_map_surface_free);
}
static void
-eng_image_map4_draw(void *data __UNUSED__, void *context, void *surface, void *image, RGBA_Map_Point *p, int smooth, int level)
+eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
{
Render_Engine *re;
re = (Render_Engine *)data;
evas_gl_common_context_target_surface_set(re->gl_context, surface);
re->gl_context->dc = context;
- evas_gl_common_image_map4_draw(re->gl_context, image, p, smooth, level);
+ evas_gl_common_image_map_draw(re->gl_context, image, npoints, p, smooth, level);
}
static void *
ORD(image_scale_hint_set);
ORD(image_scale_hint_get);
- ORD(image_map4_draw);
+ ORD(image_map_draw);
ORD(image_map_surface_new);
ORD(image_map_surface_free);
}
static void
-eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints __UNUSED__, RGBA_Map_Point *p, int smooth, int level)
+eng_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
{
Evas_GL_Image *gim = image;
Render_Engine *re;
eng_window_use(re->win);
evas_gl_common_context_target_surface_set(re->win->gl_context, surface);
re->win->gl_context->dc = context;
+ if (npoints != 4)
+ {
+ // FIXME: nash - you didnt fix this
+ abort();
+ }
if ((p[0].x == p[3].x) &&
(p[1].x == p[2].x) &&
(p[0].y == p[1].y) &&
}
else
{
- evas_gl_common_image_map4_draw(re->win->gl_context, image, p,
- smooth, level);
+ evas_gl_common_image_map_draw(re->win->gl_context, image, npoints, p,
+ smooth, level);
}
}
ORD(image_scale_hint_set);
ORD(image_scale_hint_get);
-// ORD(image_map4_draw);
+// ORD(image_map_draw);
// ORD(image_map_surface_new);
// ORD(image_map_surface_free);
/* now advertise out our api */
eng_image_scale_hint_get,
/* more font draw functions */
eng_font_last_up_to_pos,
- NULL, // ORD(image_map4_draw);
+ NULL, // ORD(image_map_draw);
NULL, // ORD(image_map_surface_new);
NULL, // ORD(image_map_surface_free);
NULL, // eng_image_content_hint_set - software doesn't use it
}
static void
-evas_engine_sdl16_image_map4_draw(void *data __UNUSED__, void *context __UNUSED__, void *surface __UNUSED__, void *image __UNUSED__, RGBA_Map_Point *p __UNUSED__, int smooth __UNUSED__, int level __UNUSED__)
+evas_engine_sdl16_image_map_draw(void *data __UNUSED__, void *context __UNUSED__, void *surface __UNUSED__, void *image __UNUSED__, int npoints __UNUSED__, RGBA_Map_Point *p __UNUSED__, int smooth __UNUSED__, int level __UNUSED__)
{
}
ORD(image_border_set);
ORD(image_border_get);
ORD(image_draw);
- ORD(image_map4_draw);
+ ORD(image_map_draw);
ORD(image_cache_flush);
ORD(image_cache_set);
ORD(image_cache_get);
eng_image_scale_hint_get,
/* more font draw functions */
eng_font_last_up_to_pos,
- NULL, // ORD(image_map4_draw);
+ NULL, // ORD(image_map_draw);
NULL, // ORD(image_map_surface_new);
NULL, // ORD(image_map_surface_free);
NULL, // eng_image_content_hint_set - software doesn't use it
re = (Render_Engine *)data;
#ifdef BUILD_PIPE_RENDER
- evas_common_pipe_map4_begin(surface);
+ evas_common_pipe_map_begin(surface);
#endif
evas_software_ddraw_outbuf_push_updated_region(re->ob, surface, x, y, w, h);
evas_software_ddraw_outbuf_free_region_for_update(re->ob, surface);
re = (Render_Engine *)data;
#ifdef BUILD_PIPE_RENDER
- evas_common_pipe_map4_begin(surface);
+ evas_common_pipe_map_begin(surface);
#endif
evas_software_gdi_outbuf_push_updated_region(re->ob, surface, x, y, w, h);
evas_software_gdi_outbuf_free_region_for_update(re->ob, surface);
re = (Render_Engine *)data;
#ifdef BUILD_PIPE_RENDER
- evas_common_pipe_map4_begin(surface);
+ evas_common_pipe_map_begin(surface);
#endif
evas_qtopia_outbuf_software_qtopia_push_updated_region(re->ob, surface, x, y, w, h);
evas_qtopia_outbuf_software_qtopia_free_region_for_update(re->ob, surface);
}
static void
-evas_engine_sdl_image_map4_draw(void *data __UNUSED__, void *context, void *surface, void *image, RGBA_Map_Point *p, int smooth, int level)
+evas_engine_sdl_image_map_draw(void *data __UNUSED__, void *context, void *surface, void *image, int npoints, RGBA_Map_Point *p, int smooth, int level)
{
SDL_Engine_Image_Entry *eim = image;
SDL_Engine_Image_Entry *dst = surface;
}
evas_common_map_rgba((RGBA_Image*) eim->cache_entry.src,
- (RGBA_Image*) dst->cache_entry.src, context, 4, p, smooth, level);
+ (RGBA_Image*) dst->cache_entry.src, context, npoints, p, smooth, level);
evas_common_cpu_end_opt();
if (mustlock_im)
ORD(image_border_set);
ORD(image_border_get);
ORD(image_draw);
- ORD(image_map4_draw);
+ ORD(image_map_draw);
ORD(image_map_surface_new);
ORD(image_map_surface_free);
ORD(image_comment_get);
re = (Render_Engine *)data;
#if defined(BUILD_PIPE_RENDER) && !defined(EVAS_FRAME_QUEUING)
- evas_common_pipe_map4_begin(surface);
+ evas_common_pipe_map_begin(surface);
#endif /* BUILD_PIPE_RENDER && !EVAS_FRAME_QUEUING*/
#ifdef EVAS_FRAME_QUEUING
ORD(image_scale_hint_set);
ORD(image_scale_hint_get);
-// ORD(image_map4_draw);
+// ORD(image_map_draw);
// ORD(image_map_surface_new);
// ORD(image_map_surface_free);