[nostalgia/core] Cleanup

This commit is contained in:
Gary Talent 2023-12-03 19:09:51 -06:00
parent 7666bcc2db
commit 5717d67462
3 changed files with 2 additions and 3 deletions

View File

@ -27,7 +27,7 @@ class Context {
};
ox::Result<ox::UniquePtr<Context>> init(turbine::Context &tctx, InitParams const& = {}) noexcept;
ox::Result<ox::UPtr<Context>> init(turbine::Context &tctx, InitParams const& = {}) noexcept;
}

View File

@ -16,7 +16,7 @@ GlContext::~GlContext() noexcept {
shutdownGfx(*this);
}
ox::Result<ox::UniquePtr<Context>> init(turbine::Context &tctx, InitParams const&params) noexcept {
ox::Result<ox::UPtr<Context>> init(turbine::Context &tctx, InitParams const&params) noexcept {
auto ctx = ox::make_unique<GlContext>(tctx);
oxReturnError(initGfx(*ctx, params));
return ox::UPtr<Context>(ctx.release());

View File

@ -23,7 +23,6 @@ struct GlContext: public core::Context {
renderer::SpriteBlockset spriteBlocks;
ox::Array<Sprite, 128> spriteStates;
ox::Array<renderer::Background, 4> backgrounds;
ox::Optional<ox::Size> renderSize;
renderer::Drawer drawer;
explicit GlContext(turbine::Context &tctx) noexcept;
~GlContext() noexcept override;