You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
("selectionsort", "Selection Sort, standard implementation")
32
32
("stdsort", "qsort() algorithm used by the c++ standard library");
33
33
options.add_options("Visualizations")
34
-
("g,gradient", "Gradient Visualization. An ellipse as base, every array entry is a vertex and the value of a vertex is represented by it's HSV hue value, with the sorted array being the 2D HSV colorspace")
35
-
("c,column", "Column Visualization. Every array entry is represented by a column, with the height of the column representing it's value. The sorted array has the lower left part of the screen white and the rest black")
36
-
("l,line", "Line Visualization. Every value is represented by a line, with the color of the line being its HSV hue value. The path of the line represents it's path through the array");
34
+
("g,gradient", "Gradient Visualization. An ellipse as base, every array entry is a vertex and the value of a vertex is represented by it's HSV hue value, with the sorted array being the 2D HSV colorspace", cxxopts::value<bool>(g))
35
+
("c,column", "Column Visualization. Every array entry is represented by a column, with the height of the column representing it's value. The sorted array has the lower left part of the screen white and the rest black", cxxopts::value<bool>(c))
36
+
("l,line", "Line Visualization. Every value is represented by a line, with the color of the line being its HSV hue value. The path of the line represents it's path through the array", cxxopts::value<bool>(l));
37
37
options.add_options("Misc")
38
38
("d,delay", "Specifies the delay after each array operation in milliseconds, does not work with assembly code", cxxopts::value<int>(delay))
39
-
("a,assembly", "Use this to toggle assembly usage whenever possible")
40
-
//("m,multithread", "Use this to toggle usage of multithreading whenever possible")
41
-
("v,vulkan", "Use this to toggle usage of Vulkan for rendering whenever possible")
39
+
("a,assembly", "Use this to toggle assembly usage whenever possible", cxxopts::value<bool>(a))
40
+
("m,multithread", "Use this to toggle usage of multithreading whenever possible", cxxopts::value<bool>(mt))
41
+
("v,vulkan", "Use this to toggle usage of Vulkan for rendering whenever possible", cxxopts::value<bool>(vulkan))
42
42
("n,elements", "Specifies the number of elements to sort", cxxopts::value<int>(number))
0 commit comments