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 c68f406..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>
@@ -113,13 +114,13 @@ public:
    * @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(float stereoBias);
+  void SetStereoBias(const Vector2& stereoBias);
 
   /**
    * Get stereo bias. The frustum offset for a 3D camera
    * @return The frustum offset for the 3D camera
    */
-  float GetStereoBias(float stereoBias) const;
+  Vector2 GetStereoBias() const;
 
   /**
    * @copydoc Dali::Camera::SetLeftClippingPlane
@@ -280,13 +281,13 @@ private:
   bool               mInvertYAxis;
   float              mFieldOfView;
   float              mAspectRatio;
-  float              mStereoBias;
   float              mLeftClippingPlane;
   float              mRightClippingPlane;
   float              mTopClippingPlane;
   float              mBottomClippingPlane;
   float              mNearClippingPlane;
   float              mFarClippingPlane;
+  Vector2            mStereoBias;
   Vector3            mTargetPosition;
 };