[nostalgia/core] Rename customData functions in Context and move them out of Context

This commit is contained in:
2022-02-03 21:06:44 -06:00
parent c7cd54ae52
commit 7459d687b0
5 changed files with 24 additions and 19 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ namespace nostalgia::core::renderer {
ox::Error init(Context *ctx, void **rendererData) noexcept;
ox::Error shutdown(Context *ctx, void *rendererData) noexcept;
void shutdown(Context *ctx, void *rendererData) noexcept;
ox::Error loadBgTexture(void *rendererData, int section, void *pixels, int w, int h) noexcept;
+1 -2
View File
@@ -195,10 +195,9 @@ ox::Error init(Context *ctx, void **rendererData) noexcept {
return OxError(0);
}
ox::Error shutdown(Context*, void *rendererData) noexcept {
void shutdown(Context*, void *rendererData) noexcept {
const auto id = reinterpret_cast<GlImplData*>(rendererData);
delete id;
return OxError(0);
}
ox::Error loadBgTexture(void *rendererData, int section, void *pixels, int w, int h) noexcept {