X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-scene-loader%2Fpublic-api%2Fmatrix-stack.h;h=5c5c9237a379d50915716abde184e0db89c26075;hb=HEAD;hp=f764da117ba0652ec447c1687abc6d201db32766;hpb=7a315fe9869206bf6ad3195931f27d88fe9c128e;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-scene-loader/public-api/matrix-stack.h b/dali-scene-loader/public-api/matrix-stack.h deleted file mode 100644 index f764da1..0000000 --- a/dali-scene-loader/public-api/matrix-stack.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef DALI_SCENE_LOADER_MATRIX_STACK_H_ -#define DALI_SCENE_LOADER_MATRIX_STACK_H_ -/* - * Copyright (c) 2020 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-scene-loader/public-api/api.h" - -// EXTERNAL INCLUDES -#include "dali/public-api/math/matrix.h" -#include "dali/public-api/common/vector-wrapper.h" - -namespace Dali -{ -namespace SceneLoader -{ - -/** - * @brief A stack of matrices whereby each newly pushed matrix is stored - * after being multiplied by the previous one (if any). - * @note Current implementation reserves space for 16 matrices. - */ -class DALI_SCENE_LOADER_API MatrixStack -{ -public: - MatrixStack(); - - bool IsEmpty() const; - void Push(const Matrix& model); - const Matrix& Top() const; - void Pop(); - void PopAll(); // clears the stack, but retains the storage. - -private: - std::vector mStack; -}; - -} -} - -#endif //DALI_SCENE_LOADER_MATRIX_STACK_H_