@@ -167,25 +167,25 @@ struct IncIndex
167167// / A helpful const representing the number of elements in our vectors.
168168// / This is used for all operations that require the copying of the vector.
169169// / 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 ;
171171
172172// / A helpful const representing the number of elements in each row/col in
173173// / our matrices. This is used for all operations that require the copying of
174174// / the matrix.
175- const unsigned int MATRIX_SIZE_DIM = 4 ;
175+ constexpr unsigned int MATRIX_SIZE_DIM = 4 ;
176176
177177// / A helpful const representing the number of elements in our matrices.
178178// / 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;
180180
181181// / The default window width
182- const unsigned int WINDOW_WIDTH = 1200 ;
182+ constexpr unsigned int WINDOW_WIDTH = 1200 ;
183183// / The default window height
184- const unsigned int WINDOW_HEIGHT = 1000 ;
184+ constexpr unsigned int WINDOW_HEIGHT = 1000 ;
185185
186186// / The default z translation used to push the world origin in front of the
187187// / display
188- const float DISPLAY_Z_TRANSLATION = -2 .0f ;
188+ constexpr float DISPLAY_Z_TRANSLATION = -2 .0f ;
189189
190190// / 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