瀏覽代碼

Added declarations

Christophe Riccio 15 年之前
父節點
當前提交
4721dbeb4a
共有 2 個文件被更改,包括 30 次插入3 次删除
  1. 28 1
      glm/gtx/simd_vec4.hpp
  2. 2 2
      glm/gtx/simd_vec4.inl

+ 28 - 1
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

+ 2 - 2
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