Changed STEREO_HORIZONTAL view mode to work with landscape orientation
[platform/core/uifw/dali-core.git] / dali / internal / event / actor-attachments / camera-attachment-impl.h
index e95476a..110f569 100644 (file)
@@ -1,21 +1,22 @@
 #ifndef __DALI_INTERNAL_CAMERA_ATTACHMENT_H__
 #define __DALI_INTERNAL_CAMERA_ATTACHMENT_H__
 
-//
-// Copyright (c) 2014 Samsung Electronics Co., Ltd.
-//
-// Licensed under the Flora License, Version 1.0 (the License);
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://floralicense.org/license/
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an AS IS BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//
+/*
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
 
 // INTERNAL INCLUDES
 #include <dali/internal/event/actor-attachments/actor-attachment-impl.h>
@@ -110,6 +111,18 @@ public:
   float GetAspectRatio() const;
 
   /**
+   * @copydoc Dali::Camera::SetLeftClippingPlane * Set stereo bias. The frustum offset for a 3D camera
+   * @param[in] stereoBias The frustum offset for the 3D camera
+   */
+  void SetStereoBias(const Vector2& stereoBias);
+
+  /**
+   * Get stereo bias. The frustum offset for a 3D camera
+   * @return The frustum offset for the 3D camera
+   */
+  Vector2 GetStereoBias() const;
+
+  /**
    * @copydoc Dali::Camera::SetLeftClippingPlane
    */
   void SetLeftClippingPlane(float leftClippingPlane);
@@ -274,6 +287,7 @@ private:
   float              mBottomClippingPlane;
   float              mNearClippingPlane;
   float              mFarClippingPlane;
+  Vector2            mStereoBias;
   Vector3            mTargetPosition;
 };