Flow Visualisation

Provide functions to emulate GLSL swizzle operator fonctionalities. More...

Collaboration diagram for GLM_GTC_swizzle:

Macros

#define static_swizzle1_const(TYPE, SIZE)
 
#define static_swizzle1_ref(TYPE, SIZE)
 

Functions

template<typename T , template< typename > class vecType>
T const & glm::swizzle (vecType< T > const &v, comp x)
 
template<typename T , template< typename > class vecType>
detail::tvec2< T > const & glm::swizzle (vecType< T > const &v, comp x, comp y)
 
template<typename T , template< typename > class vecType>
detail::tvec3< T > const & glm::swizzle (vecType< T > const &v, comp x, comp y, comp z)
 
template<typename T , template< typename > class vecType>
detail::tvec4< T > const & glm::swizzle (vecType< T > const &v, comp x, comp y, comp z, comp w)
 
template<typename T , template< typename > class vecType>
T & glm::swizzle (vecType< T > &v, comp x)
 
template<typename T , template< typename > class vecType>
detail::tref2< T > glm::swizzle (vecType< T > &v, comp x, comp y)
 
template<typename T , template< typename > class vecType>
detail::tref3< T > glm::swizzle (vecType< T > &v, comp x, comp y, comp z)
 
template<typename T , template< typename > class vecType>
detail::tref4< T > glm::swizzle (vecType< T > &v, comp x, comp y, comp z, comp w)
 

Detailed Description

Provide functions to emulate GLSL swizzle operator fonctionalities.

<glm/gtc/swizzle.hpp> need to be included to use these functionalities.

Macro Definition Documentation

#define static_swizzle1_const (   TYPE,
  SIZE 
)
Value:
template <comp x> \
GLM_FUNC_QUALIFIER TYPE swizzle(detail::tvec##SIZE<TYPE> const & v) \
{return v[x];}
detail::tref4< T > swizzle(vecType< T > &v, comp x, comp y, comp z, comp w)
#define GLM_FUNC_QUALIFIER
Definition: setup.hpp:679
#define static_swizzle1_ref (   TYPE,
  SIZE 
)
Value:
template <comp x> \
GLM_FUNC_QUALIFIER TYPE& swizzle(detail::tvec##SIZE<TYPE> & v) \
{return v[x];}
detail::tref4< T > swizzle(vecType< T > &v, comp x, comp y, comp z, comp w)
#define GLM_FUNC_QUALIFIER
Definition: setup.hpp:679

Function Documentation

template<typename T , template< typename > class vecType>
T const& glm::swizzle ( vecType< T > const &  v,
comp  x 
)
template<typename T , template< typename > class vecType>
detail::tvec2<T> const& glm::swizzle ( vecType< T > const &  v,
comp  x,
comp  y 
)
template<typename T , template< typename > class vecType>
detail::tvec3<T> const& glm::swizzle ( vecType< T > const &  v,
comp  x,
comp  y,
comp  z 
)
template<typename T , template< typename > class vecType>
detail::tvec4<T> const& glm::swizzle ( vecType< T > const &  v,
comp  x,
comp  y,
comp  z,
comp  w 
)
template<typename T , template< typename > class vecType>
T& glm::swizzle ( vecType< T > &  v,
comp  x 
)
template<typename T , template< typename > class vecType>
detail::tref2<T> glm::swizzle ( vecType< T > &  v,
comp  x,
comp  y 
)
template<typename T , template< typename > class vecType>
detail::tref3<T> glm::swizzle ( vecType< T > &  v,
comp  x,
comp  y,
comp  z 
)
template<typename T , template< typename > class vecType>
detail::tref4<T> glm::swizzle ( vecType< T > &  v,
comp  x,
comp  y,
comp  z,
comp  w 
)