EAPI void evas_obscured_clear (Evas *e) EINA_ARG_NONNULL(1);
/**
- * Notifies Evas that the gl current context and surface has been set
- * by another gl program outside of Evas. This will invalidate the
- * current context/surface within Evas and force Evas to set the
- * context/surface again next time it draws something.
- *
- * @param e The given canvas pointer.
- *
- * @note This should be used when GL is rendered using anything other
- * than Evas_GL.
- *
- * @ingroup Evas_Canvas
- */
-EAPI void evas_gl_context_dirty (Evas *e) EINA_ARG_NONNULL(1);
-
-/**
* Force immediate renderization of the given Evas canvas.
*
* @param e The given canvas pointer.
}
}
-EAPI void
-evas_gl_context_dirty(Evas *e)
-{
- MAGIC_CHECK(e, Evas, MAGIC_EVAS);
- return;
- MAGIC_CHECK_END();
-
- if (e->engine.func->gl_context_dirty)
- e->engine.func->gl_context_dirty(e->engine.data.output);
-}
-
static Eina_Bool
_evas_render_has_map(Evas_Object *obj)
{
/* max size query */
void (*image_max_size_get) (void *data, int *maxw, int *maxh);
-
- void (*gl_context_dirty) (void *data);
};
struct _Evas_Image_Load_Func
gl_direct_img_obj = image;
}
-static void
-eng_gl_context_dirty(void *data)
-{
- //eng_window_use(NULL);
- int ret;
-
- Render_Engine *re = (Render_Engine *)data;
-
- if (gl_fastpath)
- {
-#if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
- ret = glsym_eglMakeCurrent(re->win->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);
-#else
- ret = glsym_glXMakeCurrent(re->info->info.display, None, NULL);
-#endif
-
- if (!ret)
- {
- ERR("xxxMakeCurrent() failed!");
- return 0;
- }
- }
-
-}
-
static int
eng_image_load_error_get(void *data __UNUSED__, void *image)
{
ORD(image_max_size_get);
- ORD(gl_context_dirty);
/* now advertise out own api */
em->functions = (void *)(&func);
return 1;
eng_image_animated_loop_count_get,
eng_image_animated_frame_duration_get,
eng_image_animated_frame_set,
- NULL,
- NULL // Only used in GL engines <- gl_context_dirty
+ NULL
/* FUTURE software generic calls go here */
};