From 7839b862e8801b6d0e4f8c6b2d5b94a83d0bff41 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sun, 1 Jan 2017 01:28:15 +0100 Subject: [PATCH] Fixed build --- glm/gtc/packing.hpp | 4 ++-- glm/gtc/packing.inl | 4 ++-- test/gtc/gtc_packing.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/glm/gtc/packing.hpp b/glm/gtc/packing.hpp index e2263674..59595648 100644 --- a/glm/gtc/packing.hpp +++ b/glm/gtc/packing.hpp @@ -522,7 +522,7 @@ namespace glm /// /// @see gtc_packing /// @see vecType packUnorm(vecType const & v) - template + template GLM_FUNC_DECL vec unpackUnorm(vec const & v); /// Convert each component of the normalized floating-point vector into signed integer values. @@ -536,7 +536,7 @@ namespace glm /// /// @see gtc_packing /// @see vecType packSnorm(vecType const & v) - template + template GLM_FUNC_DECL vec unpackSnorm(vec const & v); /// Convert each component of the normalized floating-point vector into unsigned integer values. diff --git a/glm/gtc/packing.inl b/glm/gtc/packing.inl index 62341859..df744b2f 100644 --- a/glm/gtc/packing.inl +++ b/glm/gtc/packing.inl @@ -676,7 +676,7 @@ namespace detail return vec(round(clamp(v, static_cast(0), static_cast(1)) * static_cast(std::numeric_limits::max()))); } - template + template GLM_FUNC_QUALIFIER vec unpackUnorm(vec const& v) { GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "uintType must be an integer type"); @@ -694,7 +694,7 @@ namespace detail return vec(round(clamp(v , static_cast(-1), static_cast(1)) * static_cast(std::numeric_limits::max()))); } - template + template GLM_FUNC_QUALIFIER vec unpackSnorm(vec const & v) { GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "uintType must be an integer type"); diff --git a/test/gtc/gtc_packing.cpp b/test/gtc/gtc_packing.cpp index f045e30b..2e6e23dd 100644 --- a/test/gtc/gtc_packing.cpp +++ b/test/gtc/gtc_packing.cpp @@ -528,8 +528,8 @@ int test_packUnorm() for(std::size_t i = 0; i < A.size(); ++i) { glm::vec2 B(A[i]); - glm::u16vec2 C = glm::packUnorm<2, glm::uint16>(B); - glm::vec2 D = glm::unpackUnorm<2, glm::uint16, float>(C); + glm::u16vec2 C = glm::packUnorm(B); + glm::vec2 D = glm::unpackUnorm(C); Error += glm::all(glm::epsilonEqual(B, D, 1.0f / 255.f)) ? 0 : 1; assert(!Error); } @@ -549,8 +549,8 @@ int test_packSnorm() for(std::size_t i = 0; i < A.size(); ++i) { glm::vec2 B(A[i]); - glm::i16vec2 C = glm::packSnorm<2, glm::int16>(B); - glm::vec2 D = glm::unpackSnorm<2, glm::int16, float>(C); + glm::i16vec2 C = glm::packSnorm(B); + glm::vec2 D = glm::unpackSnorm(C); Error += glm::all(glm::epsilonEqual(B, D, 1.0f / 32767.0f * 2.0f)) ? 0 : 1; assert(!Error); }