Fixes gcc error with missing 'template <>' headers on specializations

This commit is contained in:
GPayne
2022-05-13 11:30:40 -06:00
parent 5877112103
commit 243f6d3ada

View File

@@ -211,6 +211,7 @@ double sizeFromFov(double fov, glm::dvec3 worldPosition) {
return opposite;
}
template <>
float Animation<float>::getNewValue() {
if (!isAnimating()) {
return _goal;
@@ -222,6 +223,7 @@ float Animation<float>::getNewValue() {
}
}
template <>
double Animation<double>::getNewValue() {
if (!isAnimating()) {
return _goal;
@@ -233,6 +235,7 @@ double Animation<double>::getNewValue() {
}
}
template <>
glm::dmat4 Animation<glm::dvec3>::getRotationMatrix() {
if (!isAnimating()) {
return glm::dmat4(1.0);
@@ -250,6 +253,7 @@ glm::dmat4 Animation<glm::dvec3>::getRotationMatrix() {
return rotMat;
}
template <>
glm::dvec3 Animation<glm::dvec3>::getNewValue() {
if (!isAnimating()) {
return _goal;