diff options
author | Stefan Weiberg <stefan.weiberg@germandev.org> | 2015-03-02 07:30:55 +0000 |
---|---|---|
committer | Stefan Weiberg <stefan.weiberg@germandev.org> | 2015-03-02 07:30:55 +0000 |
commit | b1f1fea5575b9384cf8f5068d06c9bee23bbd8c3 (patch) | |
tree | 37b5246a91dc75fbaff1a77b3b4b7b00da24b67c | |
parent | de64fbf92ef0a630d7429cf6a9e81d37cafc8a5c (diff) |
removed experimental matrix stackfeature/opengl-transitions-rework
* going to use another approach
-rw-r--r-- | slideshow/source/engine/OGLTrans/generic/OGLTrans_MatrixStackImpl.cxx | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/slideshow/source/engine/OGLTrans/generic/OGLTrans_MatrixStackImpl.cxx b/slideshow/source/engine/OGLTrans/generic/OGLTrans_MatrixStackImpl.cxx deleted file mode 100644 index 90cb08253084..000000000000 --- a/slideshow/source/engine/OGLTrans/generic/OGLTrans_MatrixStackImpl.cxx +++ /dev/null @@ -1,75 +0,0 @@ -template<typename T> -class MatrixStack -{ - public: - typedef T matrix_type; - - private: - std::vector<matrix_type> stack; - - public: - MatrixStack(void) - { - stack.push_back(matrix_type::identity()); - } - - void clear(void) - { - stack.clear(); - stack.push_back(matrix_type::identity()); - } - - size_t size(void) const - { - return stack.size(); - } - - void push(void) - { - matrix_type tmp = stack.back(); //required in case the stack's storage gets reallocated - stack.push_back(tmp); - } - - bool pop(void) - { - if (size() > 1) - { - stack.pop_back(); - return true; - } - else - { - return false; - } - } - - void load(const matrix_type& matrix) - { - stack.back() = matrix; - } - - void loadIdentity(void) - { - load(matrix_type::identity()); - } - - void loadTransposed(const matrix_type& matrix) - { - load(transpose(matrix)); - } - - void mult(const matrix_type& matrix) - { - load(stack.back() * matrix); - } - - void multTransposed(const matrix_type& matrix) - { - load(stack.back() * transpose(matrix)); - } - - const matrix_type& get(void) const - { - return stack.back(); - } -}; |