mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
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:
parent
7f162ff4e8
commit
1ef3e5a200
@ -47,10 +47,7 @@ namespace glm
|
|||||||
static bool const is_vec = true;
|
static bool const is_vec = true;
|
||||||
static bool const is_mat = false;
|
static bool const is_mat = false;
|
||||||
static bool const is_quat = false;
|
static bool const is_quat = false;
|
||||||
enum
|
static length_t const components = L;
|
||||||
{
|
|
||||||
components = L
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<length_t C, length_t R, typename T, qualifier Q>
|
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_vec = false;
|
||||||
static bool const is_mat = false;
|
static bool const is_mat = false;
|
||||||
static bool const is_quat = true;
|
static bool const is_quat = true;
|
||||||
enum
|
static length_t const components = 4;
|
||||||
{
|
|
||||||
components = 4
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename T, qualifier Q>
|
template<typename T, qualifier Q>
|
||||||
@ -82,10 +76,7 @@ namespace glm
|
|||||||
static bool const is_vec = false;
|
static bool const is_vec = false;
|
||||||
static bool const is_mat = false;
|
static bool const is_mat = false;
|
||||||
static bool const is_quat = true;
|
static bool const is_quat = true;
|
||||||
enum
|
static length_t const components = 8;
|
||||||
{
|
|
||||||
components = 8
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
|
Loading…
Reference in New Issue
Block a user