Added GLM_SUPPORT_SWIZZLE_OPERATOR macro

This commit is contained in:
Christophe Riccio
2011-10-20 11:28:23 +01:00
parent e5c087da89
commit 7cbda2e1e2
7 changed files with 25 additions and 19 deletions

View File

@@ -47,7 +47,7 @@
namespace glm{
namespace detail
{
#if((GLM_LANG != GLM_LANG_CXX11) && (GLM_LANG != GLM_LANG_CXXMS))
#if(!GLM_SUPPORT_SWIZZLE_OPERATOR())
template <>
struct tvec2<thalf>
{
@@ -345,7 +345,7 @@ namespace detail
tvec4<thalf> swizzle(comp X, comp Y, comp Z, comp W) const;
tref4<thalf> swizzle(comp X, comp Y, comp Z, comp W);
};
#endif//((GLM_LANG != GLM_LANG_CXX11) && (GLM_LANG != GLM_LANG_CXXMS))
#endif//(!GLM_SUPPORT_SWIZZLE_OPERATOR())
}
//namespace detail

View File

@@ -29,7 +29,7 @@
namespace glm{
namespace detail
{
#if((GLM_LANG != GLM_LANG_CXX11) && (GLM_LANG != GLM_LANG_CXXMS))
#if(!GLM_SUPPORT_SWIZZLE_OPERATOR())
//////////////////////////////////////
// hvec2
@@ -1003,7 +1003,7 @@ namespace detail
(*this)[w]);
}
#endif//_MSC_EXTENSIONS
#endif//(!GLM_SUPPORT_SWIZZLE_OPERATOR())
}//namespace detail
}//namespace glm