1234567891011121314151617181920212223 |
- #pragma once
- #include <array>
- #include <memory>
- class Display {
- private:
- bool quit_{false};
- bool play_{true};
- public:
- Display(const unsigned width, const unsigned height);
- // Copy frame to display
- void refresh(
- std::array<uint8_t*, 3> planes, std::array<size_t, 3> pitches);
- // Handle events
- void input();
- bool get_quit();
- bool get_play();
- };
|