updated demos

pull/3471/head
kallaballa 2 years ago
parent 918c29a51d
commit 7e0ca83ba0
  1. 9
      src/font/font-demo.cpp
  2. 2
      src/quad/quad-demo.cpp

@ -65,6 +65,7 @@ void setup_gui(cv::Ptr<kb::viz2d::Viz2D> v2d) {
text_color[1] = c[1];
text_color[2] = c[2];
});
v2d->makeFormVariable("Alpha", text_alpha, 0.0f, 1.0f, true, "", "The opacity of the text");
v2d->makeGroup("Stars");
@ -93,9 +94,11 @@ void setup_gui(cv::Ptr<kb::viz2d::Viz2D> v2d) {
v2d->makeGroup("Display");
v2d->makeFormVariable("Show FPS", show_fps, "Enable or disable the On-screen FPS display");
// v2d->makeButton("Fullscreen", [=]() {
// v2d->setFullscreen(!v2d->isFullscreen());
// });
#ifndef __EMSCRIPTEN__
v2d->makeButton("Fullscreen", [=]() {
v2d->setFullscreen(!v2d->isFullscreen());
});
#endif
v2d->makeButton("Offscreen", [=]() {
v2d->setOffscreen(!v2d->isOffscreen());
});

@ -7,7 +7,7 @@ constexpr long unsigned int WIDTH = 1920;
constexpr long unsigned int HEIGHT = 1080;
constexpr double FPS = 60;
constexpr bool OFFSCREEN = false;
constexpr const char* OUTPUT_FILENAME = "tetra-demo.mkv";
constexpr const char* OUTPUT_FILENAME = "quad-demo.mkv";
constexpr const int VA_HW_DEVICE_INDEX = 0;
const unsigned long DIAG = hypot(double(WIDTH), double(HEIGHT));

Loading…
Cancel
Save