@@ -31,53 +31,62 @@ namespace glm
31
31
template <typename T>
32
32
struct type
33
33
{
34
- static bool const is_vec = false ;
35
- static bool const is_mat = false ;
36
- static bool const is_quat = false ;
37
- static length_t const components = 0 ;
38
- static length_t const cols = 0 ;
39
- static length_t const rows = 0 ;
34
+ enum {
35
+ is_vec = false ,
36
+ is_mat = false ,
37
+ is_quat = false ,
38
+ components = 0 ,
39
+ cols = 0 ,
40
+ rows = 0
41
+ };
40
42
};
41
43
42
44
template <length_t L, typename T, qualifier Q>
43
45
struct type <vec<L, T, Q> >
44
46
{
45
- static bool const is_vec = true ;
46
- static bool const is_mat = false ;
47
- static bool const is_quat = false ;
48
- static length_t const components = L;
47
+ enum {
48
+ is_vec = true ,
49
+ is_mat = false ,
50
+ is_quat = false ,
51
+ components = L
52
+ };
49
53
};
50
54
51
55
template <length_t C, length_t R, typename T, qualifier Q>
52
56
struct type <mat<C, R, T, Q> >
53
57
{
54
- static bool const is_vec = false ;
55
- static bool const is_mat = true ;
56
- static bool const is_quat = false ;
57
- static length_t const components = C;
58
- static length_t const cols = C;
59
- static length_t const rows = R;
58
+ enum {
59
+ is_vec = false ,
60
+ is_mat = true ,
61
+ is_quat = false ,
62
+ components = C,
63
+ cols = C,
64
+ rows = R
65
+ };
60
66
};
61
67
62
68
template <typename T, qualifier Q>
63
69
struct type <qua<T, Q> >
64
70
{
65
- static bool const is_vec = false ;
66
- static bool const is_mat = false ;
67
- static bool const is_quat = true ;
68
- static length_t const components = 4 ;
71
+ enum {
72
+ is_vec = false ,
73
+ is_mat = false ,
74
+ is_quat = true ,
75
+ components = 4
76
+ };
69
77
};
70
78
71
79
template <typename T, qualifier Q>
72
80
struct type <tdualquat<T, Q> >
73
81
{
74
- static bool const is_vec = false ;
75
- static bool const is_mat = false ;
76
- static bool const is_quat = true ;
77
- static length_t const components = 8 ;
82
+ enum {
83
+ is_vec = false ,
84
+ is_mat = false ,
85
+ is_quat = true ,
86
+ components = 8
87
+ };
78
88
};
79
89
80
90
// / @}
81
91
}// namespace glm
82
92
83
- #include " type_trait.inl"
0 commit comments