[nostalgia/core] Cleanup
This commit is contained in:
parent
7666bcc2db
commit
5717d67462
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,7 @@ GlContext::~GlContext() noexcept {
|
||||
shutdownGfx(*this);
|
||||
}
|
||||
|
||||
ox::Result<ox::UniquePtr<Context>> init(turbine::Context &tctx, InitParams const¶ms) noexcept {
|
||||
ox::Result<ox::UPtr<Context>> init(turbine::Context &tctx, InitParams const¶ms) noexcept {
|
||||
auto ctx = ox::make_unique<GlContext>(tctx);
|
||||
oxReturnError(initGfx(*ctx, params));
|
||||
return ox::UPtr<Context>(ctx.release());
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user