{
GLData *gld = evas_object_data_get(obj, "gld");
+ gld->glapi = elm_glview_gl_api_get(obj);
printf("GL_VERSION: %s\n", gld->glapi->glGetString(GL_VERSION));
fflush(stdout);
// Animator and other vars
ani = ecore_animator_add(_anim, gl);
- gld->glapi = elm_glview_gl_api_get(gl);
evas_object_data_set(gl, "ani", ani);
evas_object_data_set(gl, "gld", gld);
evas_object_event_callback_add(gl, EVAS_CALLBACK_DEL, _del, gl);
{
GLData *gld = evas_object_data_get(obj, "gld");
if (!gld) return;
+ gld->glapi = elm_glview_gl_api_get(obj);
gears_init(gld);
}
// Add animator for rendering
ani = ecore_animator_add(_anim, gl);
- gld->glapi = elm_glview_gl_api_get(gl);
evas_object_data_set(gl, "ani", ani);
evas_object_data_set(gl, "gld", gld);
evas_object_event_callback_add(gl, EVAS_CALLBACK_DEL, _del, gl);
_init_gl(Evas_Object *obj)
{
GL_Data *gld = evas_object_data_get(obj, "gld");
+ gld->glapi = elm_glview_gl_api_get(obj);
Evas_GL_API *gl = gld->glapi;
GLfloat vVertices[] = { 0.0f, 0.5f, 0.0f,
-0.5f, -0.5f, 0.0f,
elm_object_focus_set(gl, EINA_TRUE);
ani = ecore_animator_add(_anim, gl);
- gld->glapi = elm_glview_gl_api_get(gl);
evas_object_data_set(gl, "gld", gld);
evas_object_event_callback_add(gl, EVAS_CALLBACK_DEL, _gl_del_cb, ani);
}