mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-28 07:29:45 +00:00
Added an instance of Outputs::CRT::CRT
. So progress is now: select CDT, up comes a blank window.
This commit is contained in:
parent
c0f1313830
commit
1d6fe11906
@ -18,13 +18,19 @@ void Machine::flush() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Machine::setup_output(float aspect_ratio) {
|
void Machine::setup_output(float aspect_ratio) {
|
||||||
|
crt_.reset(new Outputs::CRT::CRT(256, 1, Outputs::CRT::DisplayType::PAL50, 1));
|
||||||
|
crt_->set_rgb_sampling_function(
|
||||||
|
"vec3 rgb_sample(usampler2D sampler, vec2 coordinate, vec2 icoordinate)"
|
||||||
|
"{"
|
||||||
|
"return vec3(1.0);"
|
||||||
|
"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Machine::close_output() {
|
void Machine::close_output() {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<Outputs::CRT::CRT> Machine::get_crt() {
|
std::shared_ptr<Outputs::CRT::CRT> Machine::get_crt() {
|
||||||
return nullptr;
|
return crt_;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::shared_ptr<Outputs::Speaker> Machine::get_speaker() {
|
std::shared_ptr<Outputs::Speaker> Machine::get_speaker() {
|
||||||
|
@ -34,6 +34,9 @@ class Machine:
|
|||||||
void run_for(const Cycles cycles);
|
void run_for(const Cycles cycles);
|
||||||
|
|
||||||
void configure_as_target(const StaticAnalyser::Target &target);
|
void configure_as_target(const StaticAnalyser::Target &target);
|
||||||
|
|
||||||
|
private:
|
||||||
|
std::shared_ptr<Outputs::CRT::CRT> crt_;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user