From: DaeKwang Ryu Date: Tue, 28 Jul 2015 08:16:24 +0000 (+0900) Subject: [graphics] add resize guides in EvasGL, GLView X-Git-Tag: tizen_3.0/TD_SYNC/20161201~659^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7c834e01b1c64446761c33e9ceecd871c64ff2a;p=sdk%2Fonline-doc.git [graphics] add resize guides in EvasGL, GLView Change-Id: Ic794a67e5c41a5bd9179e3050fa8734196857cca Signed-off-by: DaeKwang Ryu --- diff --git a/org.tizen.guides/html/native/graphics/opengles_n.htm b/org.tizen.guides/html/native/graphics/opengles_n.htm index 218b477..d8e6d7e 100644 --- a/org.tizen.guides/html/native/graphics/opengles_n.htm +++ b/org.tizen.guides/html/native/graphics/opengles_n.htm @@ -170,7 +170,8 @@ static void init_gl(Evas_Object *glview) }
  • Callback for resizing -

    The resize callback is called whenever the GLView component is resized. A common action to take here is to reset the viewport.

    +

    The resize callback is called whenever the GLView component is resized. A common action to take here is to reset the viewport. Because GLView size can be changed by a parent container, you should set a resize callback and should reset viewport size with new GLView size. +

     // GLView resize function
    @@ -404,7 +405,7 @@ animate_cb(void *data)
     
     ecore_animator_add(animate_cb, ad->img);
    -

    You can define several other callbacks that have an impact on the drawing depending on the mouse, resize, and deletion events.

    +

    You can define several other callbacks that have an impact on the drawing depending on the mouse, resize, and deletion events. Because window size can be changed, you should set a resize callback of a window. You should recreate a Evas_GL_Surface in the resize callback and should reset viewport size with new window size.

     evas_object_event_callback_add(ad->img, EVAS_CALLBACK_DEL, img_del_cb, ad);