Usando el estado en los graficos
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "bitops.h"
|
||||
|
||||
Chip8::Chip8(): machine_state{std::make_shared<MachineState>()},
|
||||
graphics{machine_state},
|
||||
interpreter{machine_state, 0},
|
||||
target_cycle_time{1.0 / 700.0},
|
||||
last_update_time{0},
|
||||
@@ -104,7 +105,7 @@ void Chip8::update() {
|
||||
}
|
||||
|
||||
|
||||
graphics.draw(machine_state->display, buffer.str());
|
||||
graphics.draw();
|
||||
}
|
||||
|
||||
void Chip8::execute_instructions() {
|
||||
|
||||
Reference in New Issue
Block a user