[4.0] Supports screen rotation.
[platform/core/uifw/dali-core.git] / dali / integration-api / core.h
old mode 100644 (file)
new mode 100755 (executable)
index 39f3416..e099689
@@ -288,6 +288,18 @@ public:
    */
   void SurfaceResized(unsigned int width, unsigned int height);
 
+
+  /**
+   * Notify the Core that the GL surface has been resized and rotated.
+   * This should be done at least once i.e. after the first call to ContextCreated().
+   * The Core will use the surface size or orientation for camera calculations, and to set the GL viewport.
+   * Multi-threading note: this method should be called from the main thread
+   * @param[in] width The new surface width.
+   * @param[in] height The new surface height.
+   * @param[in] orientation The new surface orientation.
+   */
+  void SurfaceResized( unsigned int width, unsigned int height, int orientation );
+
   /**
    * Notify the Core about the top margin size.
    * Available stage size is reduced by this size.