22 lines
584 B
C++
22 lines
584 B
C++
// SPDX-License-Identifier: GPL-3.0-only
|
|
#pragma once
|
|
|
|
#include <filesystem>
|
|
|
|
#include "formats/vga.hpp"
|
|
#include "game/reality_motion.hpp"
|
|
|
|
namespace bmh::ui {
|
|
|
|
// Only the lower Reality field (RealityFieldScreen). Header and reporter text are owned
|
|
// by the caller. This renderer cannot select a pass, a player or a match result.
|
|
class RealityFieldScreen {
|
|
public:
|
|
RealityFieldScreen(const std::filesystem::path& data, uint8_t ball_style);
|
|
Image render(const RealityMotionFrame&, const Image& backdrop) const;
|
|
private:
|
|
Image atlas_, digits_;
|
|
};
|
|
|
|
} // namespace bmh::ui
|