[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] opengl evas engine build error



> 
> The diff fixes the error in evas_gl_gradient.c, but now a new
> error appears in evas_x_main.c: 
> 

    Attached is a full diff that 'should' fix all the compilation
problems with the gl engine... It works for me. Let me know if you
still have any problems with it.

    jose.
Index: e17/libs/evas/src/modules/engines/gl_common/evas_gl_gradient.c
===================================================================
RCS file: /var/cvs/e/e17/libs/evas/src/modules/engines/gl_common/evas_gl_gradient.c,v
retrieving revision 1.2
diff -u -r1.2 evas_gl_gradient.c
--- e17/libs/evas/src/modules/engines/gl_common/evas_gl_gradient.c	2 May 2006 07:28:48 -0000	1.2
+++ e17/libs/evas/src/modules/engines/gl_common/evas_gl_gradient.c	4 May 2006 03:09:40 -0000
@@ -33,7 +33,7 @@
 }
 
 Evas_GL_Gradient *
-evas_gl_common_gradient_data_unset(Evas_GL_Gradient *gr, void * data, int len, int has_alpha)
+evas_gl_common_gradient_data_unset(Evas_GL_Gradient *gr)
 {
    if (!gr) return NULL;
    evas_common_gradient_data_unset(gr->grad);
@@ -197,7 +197,7 @@
 */
    dc = evas_common_draw_context_new();
    if (!dc) return;
-   evas_common_gradient_map(dc, gr->grad, 0);
+   evas_common_gradient_map(dc, gr->grad, _EVAS_TEXTURE_REFLECT);
    if (map = gr->grad->map.data)
      {
 	im = evas_common_image_create(256, 4);
@@ -206,7 +206,7 @@
 	     int i;
 
 	     for (i = 0; i < 4; i++)
-		 evas_common_scale_rgba_span(map, gr->grad.map.len, 0xffffffff,
+		 evas_common_scale_rgba_span(map, gr->grad->map.len, 0xffffffff,
 		                             im->image->data + (i * 256), 256);
 	     im->flags |= RGBA_IMAGE_HAS_ALPHA;
 	     gr->tex = evas_gl_common_texture_new(gc, im, 0);
Index: e17/libs/evas/src/modules/engines/gl_x11/evas_engine.c
===================================================================
RCS file: /var/cvs/e/e17/libs/evas/src/modules/engines/gl_x11/evas_engine.c,v
retrieving revision 1.9
diff -u -r1.9 evas_engine.c
--- e17/libs/evas/src/modules/engines/gl_x11/evas_engine.c	2 May 2006 07:28:49 -0000	1.9
+++ e17/libs/evas/src/modules/engines/gl_x11/evas_engine.c	4 May 2006 03:09:45 -0000
@@ -144,7 +144,7 @@
      eng_context_color_interpolation_set,
      eng_context_color_interpolation_get,
      eng_context_render_op_set,
-     engine_context_render_op_get,
+     eng_context_render_op_get,
      /* rectangle draw funcs */
      eng_rectangle_draw,
      /* line draw funcs */
@@ -750,6 +750,16 @@
 }
 
 static void
+eng_gradient_range_offset_set(void *data, void *gradient, float offset)
+{
+   Render_Engine *re;
+
+   re = (Render_Engine *)data;
+   evas_gl_common_gradient_range_offset_set(gradient, offset);
+
+}
+
+static void
 eng_gradient_type_set(void *data, void *gradient, char *name)
 {
    Render_Engine *re;