[Libreoffice-commits] core.git: Branch 'feature/opengl-transitions-rework' - slideshow/source
Stefan Weiberg
stefan.weiberg at germandev.org
Sun Mar 1 23:33:27 PST 2015
slideshow/source/engine/OGLTrans/generic/OGLTrans_MatrixStackImpl.cxx | 75 ----------
1 file changed, 75 deletions(-)
New commits:
commit b1f1fea5575b9384cf8f5068d06c9bee23bbd8c3
Author: Stefan Weiberg <stefan.weiberg at germandev.org>
Date: Mon Mar 2 07:30:55 2015 +0000
removed experimental matrix stack
* going to use another approach
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 90cb082..0000000
--- 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();
- }
-};
More information about the Libreoffice-commits
mailing list