diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/modules/engines/gl_common/evas_gl_line.c | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/modules/engines/gl_common/evas_gl_line.c')
-rw-r--r-- | libraries/evas/src/modules/engines/gl_common/evas_gl_line.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libraries/evas/src/modules/engines/gl_common/evas_gl_line.c b/libraries/evas/src/modules/engines/gl_common/evas_gl_line.c new file mode 100644 index 0000000..48499ea --- /dev/null +++ b/libraries/evas/src/modules/engines/gl_common/evas_gl_line.c | |||
@@ -0,0 +1,32 @@ | |||
1 | #include "evas_gl_private.h" | ||
2 | |||
3 | void | ||
4 | evas_gl_common_line_draw(Evas_Engine_GL_Context *gc, int x1, int y1, int x2, int y2) | ||
5 | { | ||
6 | RGBA_Draw_Context *dc; | ||
7 | int r, g, b, a; | ||
8 | int c, cx, cy, cw, ch; | ||
9 | |||
10 | dc = gc->dc; | ||
11 | if (dc->mul.use) | ||
12 | { | ||
13 | a = (dc->mul.col >> 24) & 0xff; | ||
14 | r = (dc->mul.col >> 16) & 0xff; | ||
15 | g = (dc->mul.col >> 8 ) & 0xff; | ||
16 | b = (dc->mul.col ) & 0xff; | ||
17 | } | ||
18 | else | ||
19 | { | ||
20 | r = g = b = a = 255; | ||
21 | } | ||
22 | |||
23 | glFlush(); | ||
24 | |||
25 | c = gc->dc->clip.use; | ||
26 | cx = gc->dc->clip.x; cy = gc->dc->clip.y; | ||
27 | cw = gc->dc->clip.w; ch = gc->dc->clip.h; | ||
28 | |||
29 | evas_gl_common_context_line_push(gc, x1, y1, x2, y2, | ||
30 | c, cx, cy, cw, ch, | ||
31 | r, g, b, a); | ||
32 | } | ||