}</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
\r
ecore_animator_add(animate_cb, ad->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->img, EVAS_CALLBACK_DEL, img_del_cb, ad);\r