From 4721dbeb4aa1df328589d473fbd1ecf4da8a9834 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Fri, 28 Jan 2011 18:39:52 +0000 Subject: [PATCH] Added declarations --- glm/gtx/simd_vec4.hpp | 29 ++++++++++++++++++++++++++++- glm/gtx/simd_vec4.inl | 4 ++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/glm/gtx/simd_vec4.hpp b/glm/gtx/simd_vec4.hpp index f1c363a6..e75fa564 100644 --- a/glm/gtx/simd_vec4.hpp +++ b/glm/gtx/simd_vec4.hpp @@ -120,10 +120,37 @@ namespace glm { typedef detail::fvec4SIMD simd_vec4; - detail::fvec4SIMD cross( + detail::fvec4SIMD simd_length( + detail::fvec4SIMD const & v); + + detail::fvec4SIMD simd_cross( detail::fvec4SIMD const & a, detail::fvec4SIMD const & b); + detail::fvec4SIMD simd_distance( + detail::fvec4SIMD const & v); + + detail::fvec4SIMD simd_dot( + detail::fvec4SIMD const & a, + detail::fvec4SIMD const & b); + + detail::fvec4SIMD simd_normalize( + detail::fvec4SIMD const & v); + + detail::fvec4SIMD simd_faceforward( + detail::fvec4SIMD const & N, + detail::fvec4SIMD const & I, + detail::fvec4SIMD const & Nref); + + detail::fvec4SIMD simd_reflect( + detail::fvec4SIMD const & I, + detail::fvec4SIMD const & N); + + detail::fvec4SIMD simd_refract( + detail::fvec4SIMD const & I, + detail::fvec4SIMD const & N, + float const & eta); + }//namespace simd_vec4 }//namespace gtx }//namespace glm diff --git a/glm/gtx/simd_vec4.inl b/glm/gtx/simd_vec4.inl index a5244d33..88b9f1e7 100644 --- a/glm/gtx/simd_vec4.inl +++ b/glm/gtx/simd_vec4.inl @@ -267,7 +267,7 @@ namespace glm namespace simd_vec4 { # if(GLM_INSTRUCTION_SET & GLM_INSTRUCTION_SET_SSE) - inline detail::fvec4SIMD cross + inline detail::fvec4SIMD simd_cross ( detail::fvec4SIMD const & a, detail::fvec4SIMD const & b @@ -276,7 +276,7 @@ namespace glm return detail::sse_xpd_ps(a.Data, b.Data); } # else//(GLM_INSTRUCTION_SET & GLM_INSTRUCTION_SET_PURE) - inline detail::fvec4SIMD cross + inline detail::fvec4SIMD simd_cross ( detail::fvec4SIMD const & a, detail::fvec4SIMD const & b