[graphics] add resize guides in EvasGL, GLView
authorDaeKwang Ryu <dkdk.ryu@samsung.com>
Tue, 28 Jul 2015 08:16:24 +0000 (17:16 +0900)
committerDaeKwang Ryu <dkdk.ryu@samsung.com>
Tue, 28 Jul 2015 08:20:35 +0000 (17:20 +0900)
Change-Id: Ic794a67e5c41a5bd9179e3050fa8734196857cca
Signed-off-by: DaeKwang Ryu <dkdk.ryu@samsung.com>
org.tizen.guides/html/native/graphics/opengles_n.htm

index 218b477..d8e6d7e 100644 (file)
@@ -170,7 +170,8 @@ static void init_gl(Evas_Object *glview)
 }</pre>\r
        </li>\r
        <li>Callback for resizing\r
-       <p>The resize callback is called whenever the GLView component is resized. A common action to take here is to reset the viewport.</p>\r
+       <p>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.\r
+</p>\r
 \r
        <pre class="prettyprint">\r
 // GLView resize function\r
@@ -404,7 +405,7 @@ animate_cb(void *data)
 \r
 ecore_animator_add(animate_cb, ad-&gt;img);</pre>\r
 \r
-<p>You can define several other callbacks that have an impact on the drawing depending on the mouse, resize, and deletion events.</p>\r
+<p>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.</p>\r
 \r
 <pre class="prettyprint">\r
 evas_object_event_callback_add(ad-&gt;img, EVAS_CALLBACK_DEL, img_del_cb, ad);\r