summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/gl_common/evas_gl_polygon.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-12-02 15:19:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-01-07 15:06:03 +0900
commit44387b60a35836cf21e8d215be0d298a6b843431 (patch)
treef8d98e771387817791455cfe07a30711d73a4cc0 /src/modules/evas/engines/gl_common/evas_gl_polygon.c
parent61b847d47a176722f685a92a43cb1c53dc6f2178 (diff)
Evas masking: Add rectangle masking for GL
Diffstat (limited to 'src/modules/evas/engines/gl_common/evas_gl_polygon.c')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_polygon.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_polygon.c b/src/modules/evas/engines/gl_common/evas_gl_polygon.c
index afaaad5..0e5dd7f 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_polygon.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_polygon.c
@@ -139,6 +139,8 @@ evas_gl_common_poly_draw(Evas_Engine_GL_Context *gc, Evas_GL_Polygon *poly, int
139 Evas_GL_Polygon_Point *pt; 139 Evas_GL_Polygon_Point *pt;
140 Eina_Inlist *spans; 140 Eina_Inlist *spans;
141 141
142 // TODO: Implement masking support (not very important right now)
143
142 /* save out clip info */ 144 /* save out clip info */
143 c = gc->dc->clip.use; cx = gc->dc->clip.x; cy = gc->dc->clip.y; cw = gc->dc->clip.w; ch = gc->dc->clip.h; 145 c = gc->dc->clip.use; cx = gc->dc->clip.x; cy = gc->dc->clip.y; cw = gc->dc->clip.w; ch = gc->dc->clip.h;
144 146
@@ -268,7 +270,9 @@ evas_gl_common_poly_draw(Evas_Engine_GL_Context *gc, Evas_GL_Polygon *poly, int
268 y = span->y; 270 y = span->y;
269 w = span->w; 271 w = span->w;
270 h = 1; 272 h = 1;
271 evas_gl_common_context_rectangle_push(gc, x, y, w, h, cr, cg, cb, ca); 273 evas_gl_common_context_rectangle_push(gc, x, y, w, h,
274 cr, cg, cb, ca,
275 NULL, 0, 0, 0, 0);
272 } 276 }
273 } 277 }
274 else 278 else
@@ -290,7 +294,9 @@ evas_gl_common_poly_draw(Evas_Engine_GL_Context *gc, Evas_GL_Polygon *poly, int
290 h = 1; 294 h = 1;
291 RECTS_CLIP_TO_RECT(x, y, w, h, r->x, r->y, r->w, r->h); 295 RECTS_CLIP_TO_RECT(x, y, w, h, r->x, r->y, r->w, r->h);
292 if ((w > 0) && (h > 0)) 296 if ((w > 0) && (h > 0))
293 evas_gl_common_context_rectangle_push(gc, x, y, w, h, cr, cg, cb, ca); 297 evas_gl_common_context_rectangle_push(gc, x, y, w, h,
298 cr, cg, cb, ca,
299 NULL, 0, 0, 0, 0);
294 } 300 }
295 } 301 }
296 } 302 }