components, cols, rows are no longer defined as members of anonymous enums and are now instead static integral constants of type glm::length_t (this appears to be current approach).

This commit is contained in:
Yuri Kilochek 2017-12-26 19:42:12 +03:00
parent 7f162ff4e8
commit 1ef3e5a200

View File

@ -47,10 +47,7 @@ namespace glm
static bool const is_vec = true;
static bool const is_mat = false;
static bool const is_quat = false;
enum
{
components = L
};
static length_t const components = L;
};
template<length_t C, length_t R, typename T, qualifier Q>
@ -70,10 +67,7 @@ namespace glm
static bool const is_vec = false;
static bool const is_mat = false;
static bool const is_quat = true;
enum
{
components = 4
};
static length_t const components = 4;
};
template<typename T, qualifier Q>
@ -82,10 +76,7 @@ namespace glm
static bool const is_vec = false;
static bool const is_mat = false;
static bool const is_quat = true;
enum
{
components = 8
};
static length_t const components = 8;
};
/// @}