@@ -167,25 +167,25 @@ struct IncIndex
167
167
// / A helpful const representing the number of elements in our vectors.
168
168
// / This is used for all operations that require the copying of the vector.
169
169
// / Although this is used in a fairly generic way, the display requires 3D.
170
- const unsigned int XYZ_SIZE = 3 ;
170
+ constexpr unsigned int XYZ_SIZE = 3 ;
171
171
172
172
// / A helpful const representing the number of elements in each row/col in
173
173
// / our matrices. This is used for all operations that require the copying of
174
174
// / the matrix.
175
- const unsigned int MATRIX_SIZE_DIM = 4 ;
175
+ constexpr unsigned int MATRIX_SIZE_DIM = 4 ;
176
176
177
177
// / A helpful const representing the number of elements in our matrices.
178
178
// / This is used for all operations that require the copying of the matrix.
179
- const unsigned int MATRIX_SIZE = MATRIX_SIZE_DIM * MATRIX_SIZE_DIM;
179
+ constexpr unsigned int MATRIX_SIZE = MATRIX_SIZE_DIM * MATRIX_SIZE_DIM;
180
180
181
181
// / The default window width
182
- const unsigned int WINDOW_WIDTH = 1200 ;
182
+ constexpr unsigned int WINDOW_WIDTH = 1200 ;
183
183
// / The default window height
184
- const unsigned int WINDOW_HEIGHT = 1000 ;
184
+ constexpr unsigned int WINDOW_HEIGHT = 1000 ;
185
185
186
186
// / The default z translation used to push the world origin in front of the
187
187
// / display
188
- const float DISPLAY_Z_TRANSLATION = -2 .0f ;
188
+ constexpr float DISPLAY_Z_TRANSLATION = -2 .0f ;
189
189
190
190
// / The radius of the trackball given as a percentage of the screen width
191
- const float TRACKBALL_RADIUS_SCALE = 0 .4f ;
191
+ constexpr float TRACKBALL_RADIUS_SCALE = 0 .4f ;
0 commit comments