[nostalgia/core] Remove renderer funcions from Context friends

This commit is contained in:
2022-02-03 20:48:58 -06:00
parent 8174d04b06
commit c7cd54ae52
6 changed files with 22 additions and 24 deletions
+4 -9
View File
@@ -23,12 +23,6 @@ class Drawer {
virtual void draw(Context*) noexcept = 0;
};
namespace renderer {
ox::Error init(Context *ctx) noexcept;
ox::Error shutdown(Context *ctx) noexcept;
ox::Error loadBgTexture(Context *ctx, int section, void *pixels, int w, int h) noexcept;
}
// User Input Output
class Context {
friend bool bgStatus(Context *ctx, unsigned bg) noexcept;
@@ -36,9 +30,10 @@ class Context {
friend int getScreenHeight(Context *ctx) noexcept;
friend int getScreenWidth(Context *ctx) noexcept;
friend ox::Error initGfx(Context *ctx) noexcept;
friend ox::Error renderer::init(Context *ctx) noexcept;
friend ox::Error renderer::loadBgTexture(Context *ctx, int section, void *pixels, int w, int h) noexcept;
friend ox::Error renderer::shutdown(Context *ctx) noexcept;
friend ox::Error loadBgTileSheet(Context *ctx,
int section,
const ox::FileAddress &tilesheetPath,
const ox::FileAddress &palettePath) noexcept;
friend ox::Error run(Context *ctx) noexcept;
friend ox::Error shutdown(Context *ctx) noexcept;
friend ox::Result<ox::UniquePtr<Context>> init(ox::UniquePtr<ox::FileSystem> fs, const char *appName) noexcept;