1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-19 23:32:28 +00:00
CLK/Machines/Apple/Macintosh/Video.hpp

39 lines
674 B
C++
Raw Normal View History

//
// 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);
// 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_;
};
}
}
#endif /* Video_hpp */