include/Spectre/Math/Matrix4.inl: make sure the default constructor creates a zero matrix.
This commit is contained in:
parent
7605d4346f
commit
4e29b3ea2c
1 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,10 @@ const Matrix4f Matrix4f::Identity(
|
|||
template<typename T>
|
||||
inline Matrix4<T>::Matrix4()
|
||||
{
|
||||
e[0] = T(0); e[4] = T(0); e[8] = T(0); e[12] = T(0);
|
||||
e[1] = T(0); e[5] = T(0); e[9] = T(0); e[13] = T(0);
|
||||
e[2] = T(0); e[6] = T(0); e[10] = T(0); e[14] = T(0);
|
||||
e[3] = T(0); e[7] = T(0); e[11] = T(0); e[15] = T(0);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue