Groovounet/glm — pull request #8 by mackron (2012-05-16 11:30:38+00:00)
Title: SIMD Additions

Each commit has fairly detailed information on the changes, but I'll summarise here also.

simdVec4 now uses a nameless union for x, y, z and w component access. This can be controlled with the GLM_SIMD_NO_TYPE_UNION preprocessor option.

simdVec4 now implements operator[].

The default constructors of simdVec4 and simdMat4 now initialise to the same values as their vec4/mat4 counterparts. I decided to do this for consistency. This can be disabled with the GLM_SIMD_NO_DEFAULT_INIT preprocessor option.

Added an __m128[4] constructor for simdMat4.

Added const-correctness to some matrix intrinsic functions.

The simd_vec4 and simd_mat4 test programs have been updated for testing the changes.

And that's about it. I apologise in advance for any changes I made that you don't like :). I'll probably keep adding stuff as I need it and then send additional pull requests.

Dave R