1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00
CLK/Machines/Apple/Macintosh/Video.hpp
2019-05-05 23:05:24 -04:00

41 lines
793 B
C++

//
// Video.hpp
// Clock Signal
//
// Created by Thomas Harte on 03/05/2019.
// Copyright © 2019 Thomas Harte. All rights reserved.
//
#ifndef Video_hpp
#define Video_hpp
#include "../../../Outputs/CRT/CRT.hpp"
#include "../../../ClockReceiver/ClockReceiver.hpp"
namespace Apple {
namespace Macintosh {
class Video {
public:
Video(uint16_t *ram);
void set_scan_target(Outputs::Display::ScanTarget *scan_target);
void run_for(HalfCycles duration);
void set_use_alternate_screen_buffer(bool use_alternate_screen_buffer);
// TODO: feedback on blanks and syncs.
private:
Outputs::CRT::CRT crt_;
HalfCycles frame_position_;
size_t video_address_;
uint16_t *ram_;
uint8_t *pixel_buffer_;
bool use_alternate_screen_buffer_ = false;
};
}
}
#endif /* Video_hpp */