|
@@ -33,6 +33,7 @@ SlopOptions* getOptions( Options& options ) {
|
33
|
33
|
glm::vec4 color = glm::vec4( foo->r, foo->g, foo->b, foo->a );
|
34
|
34
|
options.getColor("color", 'c', color);
|
35
|
35
|
options.getBool("nokeyboard", 'k', foo->nokeyboard);
|
|
36
|
+ options.getBool("noopengl", 'o', foo->noopengl);
|
36
|
37
|
options.getString( "xdisplay", 'x', foo->xdisplay );
|
37
|
38
|
options.getString( "shader", 's', foo->shader );
|
38
|
39
|
foo->r = color.r;
|
|
@@ -127,6 +128,7 @@ void printHelp() {
|
127
|
128
|
std::cout << " -f, --format=STRING Set the output format string. Format specifiers\n";
|
128
|
129
|
std::cout << " are %x, %y, %w, %h, %i, %g, and %c.\n";
|
129
|
130
|
std::cout << " (default=`%g\n')\n";
|
|
131
|
+ std::cout << " -o, --noopengl Disable graphics acceleration.\n";
|
130
|
132
|
std::cout << "Examples\n";
|
131
|
133
|
std::cout << " $ # Gray, thick, transparent border for maximum visiblity.\n";
|
132
|
134
|
std::cout << " $ slop -b 20 -c 0.5,0.5,0.5,0.8\n";
|