diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-12-02 16:27:39 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:47:46 +0300 |
commit | 660cc3f2611cfe9c366c88d5195b42eed6b824d2 (patch) | |
tree | e8eaac338047b0d82ec86b8651fa3d293b805875 /base | |
parent | 2de2bdc3a1fe64656fdd720a71e3bbbca85dddde (diff) |
optimised working with attributes and uniforms.
Diffstat (limited to 'base')
-rw-r--r-- | base/matrix.hpp | 5 |
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) { |