diff options
author | Stijn Buys <ingar@osirion.org> | 2009-08-18 09:24:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2009-08-18 09:24:15 +0000 |
commit | f030154fe727e25a2afe1f78b3998c2d2dba95e4 (patch) | |
tree | cd92baf9e4fa8a136523b9eb570e9811846c9250 /src/math/matrix4f.cc | |
parent | 5636fad174f0bcff857c357c394c4cc8d424b302 (diff) |
astyle cleanup, corrects not loading of material textures
Diffstat (limited to 'src/math/matrix4f.cc')
-rw-r--r-- | src/math/matrix4f.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/matrix4f.cc b/src/math/matrix4f.cc index 371d666..b7953e9 100644 --- a/src/math/matrix4f.cc +++ b/src/math/matrix4f.cc @@ -36,7 +36,7 @@ void Matrix4f::clear() void Matrix4f::unity() { memset(matrix, 0, sizeof(matrix)); - for (int i=0; i <4; i++) + for (int i = 0; i < 4; i++) matrix[i][i] = 1; } @@ -48,7 +48,7 @@ void Matrix4f::assign(const Matrix4f & other) void Matrix4f::assign(const Axis & axis) { memset(matrix, 0, sizeof(matrix)); - for (int i=0; i < 3; i++) { + for (int i = 0; i < 3; i++) { memcpy(&matrix[i][0], axis[i].ptr(), sizeof(float) * 3); } matrix[3][3] = 1; @@ -69,7 +69,7 @@ Matrix4f & Matrix4f::operator=(const Axis & axis) Matrix4f const Matrix4f::transpose() { Matrix4f t; - + for (size_t i = 0; i < 4; i++) for (size_t j = 0; j < 4; j++) t.matrix[j][i] = matrix[i][j]; |