[Tizen] Revert "Remove StereoMode"
[platform/core/uifw/dali-core.git] / dali / internal / update / render-tasks / scene-graph-camera.h
index d17120f..2cea7f6 100644 (file)
@@ -124,6 +124,11 @@ public:
    */
   void SetAspectRatio( float aspectRatio );
 
+  /**
+   * @copydoc Dali::Internal::CameraActor::SetStereoBias
+   */
+  void SetStereoBias(const Vector2& stereoBias);
+
    /**
    * @copydoc Dali::Internal::CameraActor::SetLeftClippingPlane
    */
@@ -282,6 +287,7 @@ public:  // PROPERTIES
   float                         mBottomClippingPlane;
   float                         mNearClippingPlane;
   float                         mFarClippingPlane;
+  Vector2                       mStereoBias;
   Vector3                       mTargetPosition;
 
   InheritedMatrix mViewMatrix;           ///< The viewMatrix; this is double buffered for input handling.
@@ -338,6 +344,17 @@ inline void SetAspectRatioMessage( EventThreadServices& eventThreadServices, con
   new (slot) LocalType( &camera, &Camera::SetAspectRatio, parameter );
 }
 
+inline void SetStereoBiasMessage( EventThreadServices& eventThreadServices, const Camera& camera, const Vector2& parameter )
+{
+  typedef MessageValue1< Camera, Vector2 > LocalType;
+
+  // Reserve some memory inside the message queue
+  uint32_t* slot = eventThreadServices.ReserveMessageSlot( sizeof( LocalType ) );
+
+  // Construct message in the message queue memory; note that delete should not be called on the return value
+  new (slot) LocalType( &camera, &Camera::SetStereoBias, parameter );
+}
+
 inline void SetLeftClippingPlaneMessage( EventThreadServices& eventThreadServices, const Camera& camera, float parameter )
 {
   typedef MessageValue1< Camera, float > LocalType;