Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-12-02 16:27:39 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:47:46 +0300
commit660cc3f2611cfe9c366c88d5195b42eed6b824d2 (patch)
treee8eaac338047b0d82ec86b8651fa3d293b805875 /base
parent2de2bdc3a1fe64656fdd720a71e3bbbca85dddde (diff)
optimised working with attributes and uniforms.
Diffstat (limited to 'base')
-rw-r--r--base/matrix.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/matrix.hpp b/base/matrix.hpp
index 9338493728..f8322187f6 100644
--- a/base/matrix.hpp
+++ b/base/matrix.hpp
@@ -21,6 +21,11 @@ namespace math
m_data[i] = src.m_data[i];
}
+ Matrix(T * data)
+ {
+ copy(data, data + Rows * Cols, m_data);
+ }
+
template <typename U>
Matrix<T, Rows, Cols> const & operator=(Matrix<U, Rows, Cols> const & src)
{