[nostalgia/core] Add support for implementation data to Context and move SDL data to it

This commit is contained in:
2020-03-22 18:30:33 -05:00
parent 0e2276bab8
commit 6d2155d1ed
9 changed files with 81 additions and 52 deletions
+3 -3
View File
@@ -12,9 +12,9 @@
namespace nostalgia::core {
void draw();
void draw(Context *ctx);
ox::Error run() {
ox::Error run(Context *ctx) {
for (auto running = true; running;) {
SDL_Event event;
while (SDL_PollEvent(&event)) {
@@ -30,7 +30,7 @@ ox::Error run() {
}
}
}
draw();
draw(ctx);
}
return OxError(0);
}