Browse Source

Removed l-value swizzle operators

Christophe Riccio 12 years ago
parent
commit
c6062115c6
5 changed files with 4 additions and 4 deletions
  1. 1 1
      glm/core/type_vec2.hpp
  2. 1 1
      glm/core/type_vec3.hpp
  3. 1 1
      glm/core/type_vec4.hpp
  4. 0 1
      glm/gtc/swizzle.hpp
  5. 1 0
      readme.txt

+ 1 - 1
glm/core/type_vec2.hpp

@@ -73,7 +73,7 @@ namespace detail
 			union {value_type y, g, t;};
 
 #			if(defined(GLM_SWIZZLE))
-				GLM_SWIZZLE_GEN_REF_FROM_VEC2(value_type, P, detail::tvec2, detail::tref2)
+				//GLM_SWIZZLE_GEN_REF_FROM_VEC2(value_type, P, detail::tvec2, detail::tref2)
 				GLM_SWIZZLE_GEN_VEC_FROM_VEC2(value_type, P, detail::tvec2, detail::tvec2, detail::tvec3, detail::tvec4)
 #			endif//(defined(GLM_SWIZZLE))
 #		endif//GLM_LANG

+ 1 - 1
glm/core/type_vec3.hpp

@@ -74,7 +74,7 @@ namespace detail
 			union { value_type z, b, p; };
 
 #			if(defined(GLM_SWIZZLE))
-				GLM_SWIZZLE_GEN_REF_FROM_VEC3(T, P, detail::tvec3, detail::tref2, detail::tref3)
+				//GLM_SWIZZLE_GEN_REF_FROM_VEC3(T, P, detail::tvec3, detail::tref2, detail::tref3)
 				GLM_SWIZZLE_GEN_VEC_FROM_VEC3(T, P, detail::tvec3, detail::tvec2, detail::tvec3, detail::tvec4)
 #			endif//(defined(GLM_SWIZZLE))
 #		endif//GLM_LANG

+ 1 - 1
glm/core/type_vec4.hpp

@@ -75,7 +75,7 @@ namespace detail
 			union { value_type w, a, q; };
 
 #			if(defined(GLM_SWIZZLE))
-				GLM_SWIZZLE_GEN_REF_FROM_VEC4(T, P, detail::tvec4, detail::tref2, detail::tref3, detail::tref4)
+				//GLM_SWIZZLE_GEN_REF_FROM_VEC4(T, P, detail::tvec4, detail::tref2, detail::tref3, detail::tref4)
 				GLM_SWIZZLE_GEN_VEC_FROM_VEC4(T, P, detail::tvec4, detail::tvec2, detail::tvec3, detail::tvec4)
 #			endif//(defined(GLM_SWIZZLE))
 #		endif//GLM_LANG

+ 0 - 1
glm/gtc/swizzle.hpp

@@ -393,7 +393,6 @@ namespace glm
 	static_swizzle4_ref(glm::u16, 4)
 	static_swizzle4_ref(glm::u32, 4)
 	static_swizzle4_ref(glm::u64, 4)
-
 	/// @}
 }//namespace glm
 

+ 1 - 0
readme.txt

@@ -51,6 +51,7 @@ GLM 0.9.5.0: 2013-XX-XX
 - Removed GTX_ocl_type extension
 - Fixed post increment and decrement operators
 - Fixed perspective with zNear == 0 (#71)
+- Removed l-value swizzle operators
 
 ================================================================================
 GLM 0.9.4.6: 2013-08-XX