X-Git-Url: https://git.ti.com/gitweb?p=android%2Fexternal-libkmsxx.git;a=blobdiff_plain;f=kmscube%2Fcube.cpp;h=4129554db6da023223b7c3745a0d1a04e4bea25e;hp=14c340aa566c0156295c15c00e796ce706825dbd;hb=a17a7364011f30d40c8ef214addda814c0513fb8;hpb=f902b289c2a3956176fc328afb31ea4fc91f8984;ds=inline diff --git a/kmscube/cube.cpp b/kmscube/cube.cpp index 14c340a..4129554 100644 --- a/kmscube/cube.cpp +++ b/kmscube/cube.cpp @@ -26,12 +26,13 @@ /* Based on a egl cube test app originally written by Arvin Schnell */ #include "cube.h" -#include "opts.h" -#include "test.h" +#include using namespace std; bool s_verbose; +bool s_fullscreen; +unsigned s_num_frames; int main(int argc, char *argv[]) { @@ -41,6 +42,16 @@ int main(int argc, char *argv[]) { s_verbose = true; }), + Option("f|fullscreen", + [&]() + { + s_fullscreen = true; + }), + Option("n|numframes=", + [&](string s) + { + s_num_frames = stoi(s); + }), }; optionset.parse(argc, argv);