|
|
@ -53,7 +53,7 @@ namespace glm |
|
|
|
namespace glm{ |
|
|
|
namespace glm{ |
|
|
|
namespace detail |
|
|
|
namespace detail |
|
|
|
{ |
|
|
|
{ |
|
|
|
//! Internal class for implementing swizzle operators
|
|
|
|
// Internal class for implementing swizzle operators
|
|
|
|
template <typename T, int N> |
|
|
|
template <typename T, int N> |
|
|
|
struct _swizzle_base0 |
|
|
|
struct _swizzle_base0 |
|
|
|
{ |
|
|
|
{ |
|
|
@ -92,7 +92,7 @@ namespace detail |
|
|
|
V operator ()() const { return V(this->elem(E0), this->elem(E1), this->elem(E2), this->elem(E3)); } |
|
|
|
V operator ()() const { return V(this->elem(E0), this->elem(E1), this->elem(E2), this->elem(E3)); } |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
//! Internal class for implementing swizzle operators
|
|
|
|
// Internal class for implementing swizzle operators
|
|
|
|
/*!
|
|
|
|
/*!
|
|
|
|
Template parameters: |
|
|
|
Template parameters: |
|
|
|
|
|
|
|
|
|
|
@ -183,7 +183,7 @@ namespace detail |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
//! Specialization for swizzles containing duplicate elements. These cannot be modified.
|
|
|
|
// Specialization for swizzles containing duplicate elements. These cannot be modified.
|
|
|
|
template <typename ValueType, typename VecType, int N, int E0, int E1, int E2, int E3> |
|
|
|
template <typename ValueType, typename VecType, int N, int E0, int E1, int E2, int E3> |
|
|
|
struct _swizzle_base2<ValueType,VecType,N,E0,E1,E2,E3,1> : public _swizzle_base1<ValueType,VecType,E0,E1,E2,E3,N> |
|
|
|
struct _swizzle_base2<ValueType,VecType,N,E0,E1,E2,E3,1> : public _swizzle_base1<ValueType,VecType,E0,E1,E2,E3,N> |
|
|
|
{ |
|
|
|
{ |
|
|
|