X-Git-Url: https://git.ti.com/gitweb?p=android%2Fexternal-libkmsxx.git;a=blobdiff_plain;f=kmscube%2Fcube.cpp;h=9aa8a84f72d78e94fdec04d2a4e1d72d6b35aafb;hp=eb2f6134676a5074b0be9138e7540c1add2dcf83;hb=6ec82c4a50a82964c9be2bd40dc7097e8dcc8441;hpb=85797e7acf5f4322dc715f71e473f026ebbbc837 diff --git a/kmscube/cube.cpp b/kmscube/cube.cpp index eb2f613..9aa8a84 100644 --- a/kmscube/cube.cpp +++ b/kmscube/cube.cpp @@ -26,13 +26,14 @@ /* Based on a egl cube test app originally written by Arvin Schnell */ #include "cube.h" -#include "opts.h" -#include "test.h" +#include +#include using namespace std; bool s_verbose; bool s_fullscreen; +unsigned s_num_frames; int main(int argc, char *argv[]) { @@ -47,6 +48,11 @@ int main(int argc, char *argv[]) { s_fullscreen = true; }), + Option("n|numframes=", + [&](string s) + { + s_num_frames = stoi(s); + }), }; optionset.parse(argc, argv);