X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-scene-loader%2Fpublic-api%2Fcamera-parameters.h;h=06370fc29e4fa9fec88ad42737170a3f88430a2c;hb=020b07151378db83ab8e12eb3e2d51db0ed69996;hp=20b3ee322d1872f87cba1e67190975e8513fe850;hpb=7a315fe9869206bf6ad3195931f27d88fe9c128e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-scene-loader/public-api/camera-parameters.h b/dali-scene-loader/public-api/camera-parameters.h index 20b3ee3..06370fc 100644 --- a/dali-scene-loader/public-api/camera-parameters.h +++ b/dali-scene-loader/public-api/camera-parameters.h @@ -1,7 +1,7 @@ #ifndef DALI_SCENE_LOADER_CAMERA_PARAMETERS_H #define DALI_SCENE_LOADER_CAMERA_PARAMETERS_H /* - * Copyright (c) 2020 Samsung Electronics Co., Ltd. + * Copyright (c) 2021 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. @@ -17,7 +17,7 @@ * */ - // INTERNAL INCLUDES +// INTERNAL INCLUDES #include "dali-scene-loader/public-api/api.h" #include "dali-scene-loader/public-api/view-projection.h" @@ -27,31 +27,18 @@ namespace Dali { - class CameraActor; namespace SceneLoader { - struct DALI_SCENE_LOADER_API CameraParameters { - CameraParameters() - : matrix(Matrix::IDENTITY), - orthographicSize(-1.f, 1.f, 1.f, -1.f), - yFov(60.f), - zNear(0.1f), - zFar(1000.f), - isPerspective(true) - {} - - ~CameraParameters() = default; - - Matrix matrix; - Vector4 orthographicSize; - float yFov; - float zNear; - float zFar; - bool isPerspective; + Matrix matrix = Matrix::IDENTITY; + Vector4 orthographicSize = Vector4{-1.f, 1.f, 1.f, -1.f}; + float yFov = 60.f; + float zNear = 0.1f; + float zFar = 1000.f; + bool isPerspective = true; /** * @return The view-projection matrix of the camera. @@ -72,7 +59,7 @@ struct DALI_SCENE_LOADER_API CameraParameters void ConfigureCamera(CameraActor& camera) const; }; -} -} +} // namespace SceneLoader +} // namespace Dali #endif // DALI_SCENE_LOADER_CAMERA_PARAMETERS_H