include/Spectre/Math/Matrix4.inl: gcc complains about multiple definitions of Identity. just template the type instead of only allow float.
This commit is contained in:
parent
ffe75049d0
commit
9da8addeb2
1 changed files with 6 additions and 6 deletions
|
|
@ -4,12 +4,12 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "Matrix4.h"
|
#include "Matrix4.h"
|
||||||
|
|
||||||
template<>
|
template<typename T>
|
||||||
const Matrix4f Matrix4f::Identity(
|
const Matrix4<T> Matrix4<T>::Identity(
|
||||||
1.0f, 0.0f, 0.0f, 0.0f,
|
1, 0, 0, 0,
|
||||||
0.0f, 1.0f, 0.0f, 0.0f,
|
0, 1, 0, 0,
|
||||||
0.0f, 0.0f, 1.0f, 0.0f,
|
0, 0, 1, 0,
|
||||||
0.0f, 0.0f, 0.0f, 1.0f
|
0, 0, 0, 1
|
||||||
);
|
);
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue