Fixed merge
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -132,6 +132,7 @@ namespace glm
|
||||
(
|
||||
genType const & x,
|
||||
genType const & y
|
||||
|
||||
)
|
||||
{
|
||||
GLM_STATIC_ASSERT(detail::type<genType>::is_float, "'dot' only accept floating-point inputs");
|
||||
|
||||
@@ -114,6 +114,12 @@ namespace detail
|
||||
|
||||
tvec2(tref2<T> const & r);
|
||||
|
||||
template <int E0, int E1>
|
||||
GLM_FUNC_DECL tvec2(const glm::detail::swizzle<2,T,tvec2<T>,E0,E1,-1,-2>& that)
|
||||
{
|
||||
*this = that();
|
||||
}
|
||||
|
||||
//////////////////////////////////////
|
||||
// Convertion constructors
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace detail
|
||||
|
||||
# if(GLM_COMPONENT == GLM_COMPONENT_ONLY_XYZW)
|
||||
value_type x, y, z;
|
||||
# elif(GLM_COMPONENT == GLM_COMPONENT_MS_EXT)
|
||||
# elif(GLM_COMPONENT == GLM_COMPONENT_MS_EXT || GLM_LANG == GLM_LANG_CXX0X)
|
||||
union
|
||||
{
|
||||
_GLM_SWIZZLE3_2_MEMBERS(value_type,glm::detail::tvec2<value_type>,x,y,z)
|
||||
@@ -116,6 +116,12 @@ namespace detail
|
||||
|
||||
GLM_FUNC_DECL tvec3(tref3<T> const & r);
|
||||
|
||||
template <int E0, int E1, int E2>
|
||||
GLM_FUNC_DECL tvec3(const glm::detail::swizzle<3,T,tvec3<T>,E0,E1,E2,-1>& that)
|
||||
{
|
||||
*this = that();
|
||||
}
|
||||
|
||||
//////////////////////////////////////
|
||||
// Convertion scalar constructors
|
||||
|
||||
|
||||
@@ -118,6 +118,12 @@ namespace detail
|
||||
|
||||
GLM_FUNC_DECL tvec4(tref4<T> const & r);
|
||||
|
||||
template <int E0, int E1, int E2, int E3>
|
||||
GLM_FUNC_DECL tvec4(const glm::detail::swizzle<4,T,tvec4<T>,E0,E1,E2,E3>& that)
|
||||
{
|
||||
*this = that();
|
||||
}
|
||||
|
||||
//////////////////////////////////////
|
||||
// Convertion scalar constructors
|
||||
|
||||
|
||||
Reference in New Issue
Block a user