Usando el estado en los graficos

This commit is contained in:
2025-06-22 00:59:42 -04:00
parent 64294d01ac
commit 928b203ef5
4 changed files with 18 additions and 31 deletions

View File

@@ -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() {