[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);
|
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);
|
auto ctx = ox::make_unique<GlContext>(tctx);
|
||||||
oxReturnError(initGfx(*ctx, params));
|
oxReturnError(initGfx(*ctx, params));
|
||||||
return ox::UPtr<Context>(ctx.release());
|
return ox::UPtr<Context>(ctx.release());
|
||||||
|
@ -23,7 +23,6 @@ struct GlContext: public core::Context {
|
|||||||
renderer::SpriteBlockset spriteBlocks;
|
renderer::SpriteBlockset spriteBlocks;
|
||||||
ox::Array<Sprite, 128> spriteStates;
|
ox::Array<Sprite, 128> spriteStates;
|
||||||
ox::Array<renderer::Background, 4> backgrounds;
|
ox::Array<renderer::Background, 4> backgrounds;
|
||||||
ox::Optional<ox::Size> renderSize;
|
|
||||||
renderer::Drawer drawer;
|
renderer::Drawer drawer;
|
||||||
explicit GlContext(turbine::Context &tctx) noexcept;
|
explicit GlContext(turbine::Context &tctx) noexcept;
|
||||||
~GlContext() noexcept override;
|
~GlContext() noexcept override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user