[nostalgia/core] Remove renderer funcions from Context friends
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user