From 6f67371bb1b46579ae837d0e0c61ac1b291be743 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Sat, 13 Jan 2018 07:51:33 +0500 Subject: Directory renamed --- depedencies/include/glm/gtx/wrap.inl | 58 ------------------------------------ 1 file changed, 58 deletions(-) delete mode 100644 depedencies/include/glm/gtx/wrap.inl (limited to 'depedencies/include/glm/gtx/wrap.inl') diff --git a/depedencies/include/glm/gtx/wrap.inl b/depedencies/include/glm/gtx/wrap.inl deleted file mode 100644 index 941a803..0000000 --- a/depedencies/include/glm/gtx/wrap.inl +++ /dev/null @@ -1,58 +0,0 @@ -/// @ref gtx_wrap -/// @file glm/gtx/wrap.inl - -namespace glm -{ - template class vecType> - GLM_FUNC_QUALIFIER vecType clamp(vecType const& Texcoord) - { - return glm::clamp(Texcoord, vecType(0), vecType(1)); - } - - template - GLM_FUNC_QUALIFIER genType clamp(genType const & Texcoord) - { - return clamp(tvec1(Texcoord)).x; - } - - template class vecType> - GLM_FUNC_QUALIFIER vecType repeat(vecType const& Texcoord) - { - return glm::fract(Texcoord); - } - - template - GLM_FUNC_QUALIFIER genType repeat(genType const & Texcoord) - { - return repeat(tvec1(Texcoord)).x; - } - - template class vecType> - GLM_FUNC_QUALIFIER vecType mirrorClamp(vecType const& Texcoord) - { - return glm::fract(glm::abs(Texcoord)); - } - - template - GLM_FUNC_QUALIFIER genType mirrorClamp(genType const & Texcoord) - { - return mirrorClamp(tvec1(Texcoord)).x; - } - - template class vecType> - GLM_FUNC_QUALIFIER vecType mirrorRepeat(vecType const& Texcoord) - { - vecType const Abs = glm::abs(Texcoord); - vecType const Clamp = glm::mod(glm::floor(Abs), vecType(2)); - vecType const Floor = glm::floor(Abs); - vecType const Rest = Abs - Floor; - vecType const Mirror = Clamp + Rest; - return mix(Rest, vecType(1) - Rest, glm::greaterThanEqual(Mirror, vecType(1))); - } - - template - GLM_FUNC_QUALIFIER genType mirrorRepeat(genType const& Texcoord) - { - return mirrorRepeat(tvec1(Texcoord)).x; - } -}//namespace glm -- cgit v1.2.3