summaryrefslogtreecommitdiff
path: root/src/lib/ector/gl/ector_renderer_gl.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-05-11 12:33:30 +0100
committerTom Hacohen <tom@stosb.com>2016-05-11 12:57:55 +0100
commit9f15b9fbe70e9bd99774a3129843b030f8d1f5d6 (patch)
tree72b9b6dce3a33421ac7f4ca99df263da1dfdad94 /src/lib/ector/gl/ector_renderer_gl.c
parent718033886ac819134a93c049f6225b157921d9b9 (diff)
Ector renderer gl: Remove the no longer needed .Base hack.
Diffstat (limited to 'src/lib/ector/gl/ector_renderer_gl.c')
-rw-r--r--src/lib/ector/gl/ector_renderer_gl.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/src/lib/ector/gl/ector_renderer_gl.c b/src/lib/ector/gl/ector_renderer_gl.c
new file mode 100644
index 0000000000..0b2f43d181
--- /dev/null
+++ b/src/lib/ector/gl/ector_renderer_gl.c
@@ -0,0 +1,55 @@
1#ifdef HAVE_CONFIG_H
2# include "config.h"
3#endif
4
5#include <Eina.h>
6#include <Ector.h>
7
8#include "gl/Ector_GL.h"
9#include "ector_private.h"
10#include "ector_gl_private.h"
11
12typedef struct _Ector_Renderer_GL_Data Ector_Renderer_GL_Data;
13struct _Ector_Renderer_GL_Data
14{
15 Ector_Renderer_Generic_Base_Data *base;
16};
17
18static Eina_Bool
19_ector_renderer_gl_ector_renderer_generic_base_prepare(Eo *obj EINA_UNUSED,
20 Ector_Renderer_GL_Data *pd EINA_UNUSED)
21{
22 return EINA_TRUE;
23}
24
25static Eina_Bool
26_ector_renderer_gl_ector_renderer_generic_base_draw(Eo *obj EINA_UNUSED,
27 Ector_Renderer_GL_Data *pd,
28 Efl_Gfx_Render_Op op,
29 Eina_Array *clips,
30 unsigned int mul_col EINA_UNUSED)
31{
32 Eina_Bool r;
33
34 r = ector_gl_surface_state_define(pd->base->surface, op, clips);
35
36 return r;
37}
38
39static Eo_Base *
40_ector_renderer_gl_eo_base_constructor(Eo *obj, Ector_Renderer_GL_Data *pd)
41{
42 obj = eo_constructor(eo_super(obj, ECTOR_RENDERER_GL_CLASS));
43 if (!obj) return NULL;
44
45 pd->base = eo_data_xref(obj, ECTOR_RENDERER_GENERIC_BASE_CLASS, obj);
46 return obj;
47}
48
49static void
50_ector_renderer_gl_eo_base_destructor(Eo *obj, Ector_Renderer_GL_Data *pd)
51{
52 eo_data_xunref(obj, pd->base, obj);
53}
54
55#include "ector_renderer_gl.eo.c"