tiny_player.h 762 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef DEPTHGUIDE_TINY_PLAYER_H
  2. #define DEPTHGUIDE_TINY_PLAYER_H
  3. #include "core/object_manager.h"
  4. #include "module/image_player.h"
  5. #include "module/image_viewer.h"
  6. #include "impl/app_base.h"
  7. class app_tiny_player : public app_base {
  8. public:
  9. explicit app_tiny_player(const create_config &conf);
  10. ~app_tiny_player() override = default;
  11. const char *window_name() override { return "TinyPlayer V4.-1"; }
  12. void show_ui() override;
  13. void render_background() override;
  14. private:
  15. enum obj_names : object_manager::name_type {
  16. img_bg,
  17. };
  18. create_config conf;
  19. std::unique_ptr<image_viewer> bg_viewer; // background viewer
  20. std::unique_ptr<image_player> in_player; // input player
  21. };
  22. #endif //DEPTHGUIDE_TINY_PLAYER_H