Added GLM_META_PROG_HELPERS #350

This commit is contained in:
Christophe Riccio
2015-07-19 00:25:33 +02:00
parent 47deb9709c
commit 38c9cd6cba
18 changed files with 199 additions and 155 deletions

View File

@@ -64,13 +64,16 @@ namespace glm
{
typedef tquat<T, P> type;
typedef T value_type;
# if GLM_HAS_CONSTEXPR
static GLM_CONSTEXPR length_t components = 4;
static GLM_CONSTEXPR precision prec = P;
# else
static const length_t components = 4;
static const precision prec = P;
# endif
# if GLM_META_PROG_HELPERS
# if GLM_HAS_CONSTEXPR
static GLM_CONSTEXPR length_t components = 4;
static GLM_CONSTEXPR precision prec = P;
# else
static const length_t components = 4;
static const precision prec = P;
# endif//GLM_HAS_CONSTEXPR
# endif//GLM_META_PROG_HELPERS
public:
T x, y, z, w;