Browse Source

Added GTX_vec_swizzle, faster compile time swizzling then swizzle operator #558

Christophe Riccio 9 years ago
parent
commit
a17f795aaf
5 changed files with 13 additions and 0 deletions
  1. 1 0
      glm/ext.hpp
  2. 0 0
      glm/gtx/vec_swizzle.hpp
  3. 1 0
      readme.md
  4. 1 0
      test/gtx/CMakeLists.txt
  5. 10 0
      test/gtx/gtx_vec_swizzle.cpp

+ 1 - 0
glm/ext.hpp

@@ -104,6 +104,7 @@
 #endif
 #include "./gtx/transform.hpp"
 #include "./gtx/transform2.hpp"
+#include "./gtx/vec_swizzle.hpp"
 #include "./gtx/vector_angle.hpp"
 #include "./gtx/vector_query.hpp"
 #include "./gtx/wrap.hpp"

+ 0 - 0
glm/gtc/vec_swizzle.hpp → glm/gtx/vec_swizzle.hpp


+ 1 - 0
readme.md

@@ -54,6 +54,7 @@ glm::mat4 camera(float Translate, glm::vec2 const & Rotate)
 ##### Features:
 - Added RGBM encoding in GTC_packing #420
 - Added GTC_color_encoding extension
+- Added GTX_vec_swizzle, faster compile time swizzling then swizzle operator #558
 
 ##### Improvements:
 - Added lowp variant of GTC_colorspace convertLinearToSRGB #419

+ 1 - 0
test/gtx/CMakeLists.txt

@@ -44,6 +44,7 @@ glmCreateTestGTC(gtx_spline)
 glmCreateTestGTC(gtx_string_cast)
 glmCreateTestGTC(gtx_type_aligned)
 glmCreateTestGTC(gtx_type_trait)
+glmCreateTestGTC(gtx_vec_swizzle)
 glmCreateTestGTC(gtx_vector_angle)
 glmCreateTestGTC(gtx_vector_query)
 glmCreateTestGTC(gtx_wrap)

+ 10 - 0
test/gtx/gtx_vec_swizzle.cpp

@@ -0,0 +1,10 @@
+#include <glm/gtx/vec_swizzle.hpp>
+
+int main()
+{
+	int Error = 0;
+
+
+	return Error;
+}
+