Add static components and prec members to all vector and quaternion types
This commit is contained in:
@@ -64,6 +64,13 @@ 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
|
||||
|
||||
public:
|
||||
T x, y, z, w;
|
||||
|
||||
Reference in New Issue
Block a user