[nostalgia/core] Cleanup

This commit is contained in:
2022-02-13 02:24:01 -06:00
parent 41cebff5fc
commit 779dd1fd05
4 changed files with 15 additions and 18 deletions
+3 -7
View File
@@ -8,6 +8,7 @@
#include "assetmanager.hpp"
#include "event.hpp"
#include "input.hpp"
namespace nostalgia::common {
class Size;
@@ -16,13 +17,7 @@ class Size;
namespace nostalgia::core {
class Context;
class Drawer {
public:
virtual ~Drawer() = default;
virtual void draw(Context*) noexcept = 0;
};
class Drawer;
// User Input Output
class Context {
@@ -31,6 +26,7 @@ class Context {
friend constexpr T *applicationData(Context *ctx) noexcept;
friend constexpr void setConstantRefresh(Context *ctx, bool) noexcept;
friend bool bgStatus(Context *ctx, unsigned bg) noexcept;
friend bool buttonDown(Context *ctx, Key) noexcept;
friend common::Size getScreenSize(Context *ctx) noexcept;
friend int getScreenHeight(Context *ctx) noexcept;
friend int getScreenWidth(Context *ctx) noexcept;