if (!glXQueryExtension(disp, &eb, &evb)) return NULL;
re = calloc(1, sizeof(Render_Engine));
- re->win = evas_engine_gl_x11_window_new(disp, draw,
+ re->win = eng_window_new(disp, draw,
0 /* FIXME: screen 0 assumption */,
vis, cmap, depth, w, h);
if (!re->win)
re = (Render_Engine *)data;
// printf("GL: flush your mush!\n");
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
/* SLOW AS ALL HELL! */
#if 0
Render_Engine *re;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
evas_gl_common_rect_draw(re->win->gl_context, context, x, y, w, h);
}
Render_Engine *re;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
evas_gl_common_gradient_draw(re->win->gl_context, context, gradient, x, y, w, h, angle, spread);
}
re = (Render_Engine *)data;
*error = 0;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
return evas_gl_common_image_load(re->win->gl_context, file, key);
}
Render_Engine *re;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
return evas_gl_common_image_new_from_data(re->win->gl_context, w, h, image_data);
}
Render_Engine *re;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
return evas_gl_common_image_new_from_copied_data(re->win->gl_context, w, h, image_data);
}
Render_Engine *re;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
evas_gl_common_image_free(image);
}
Evas_GL_Image *im, *im_old;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
if (!image) return NULL;
im_old = image;
if ((im_old) && (im_old->im->image->w == w) && (im_old->im->image->h == h))
re = (Render_Engine *)data;
im = image;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
evas_common_load_image_data_from_file(im->im);
if (to_write)
{
re = (Render_Engine *)data;
im = image;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
if (image_data != im->im->image->data)
{
int w, h;
Evas_GL_Image *im;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
im = image;
if ((has_alpha) && (im->im->flags & RGBA_IMAGE_HAS_ALPHA)) return image;
else if ((!has_alpha) && (!(im->im->flags & RGBA_IMAGE_HAS_ALPHA))) return image;
re = (Render_Engine *)data;
im = image;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
if (im->im->flags & RGBA_IMAGE_HAS_ALPHA) return 1;
return 0;
}
Render_Engine *re;
re = (Render_Engine *)data;
- evas_engine_gl_x11_window_use(re->win);
+ eng_window_use(re->win);
evas_gl_common_image_draw(re->win->gl_context, context, image,
src_x, src_y, src_w, src_h,
dst_x, dst_y, dst_w, dst_h,