31 lines
667 B
C++
31 lines
667 B
C++
/*
|
|
* Copyright 2016 - 2022 Gary Talent (gary@drinkingtea.net). All rights reserved.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <ox/fs/fs.hpp>
|
|
|
|
#include "assetmanager.hpp"
|
|
#include "clipboard.hpp"
|
|
#include "consts.hpp"
|
|
#include "event.hpp"
|
|
#include "gfx.hpp"
|
|
#include "input.hpp"
|
|
#include "media.hpp"
|
|
|
|
namespace nostalgia::core {
|
|
|
|
ox::Result<ox::UniquePtr<Context>> init(ox::UniquePtr<ox::FileSystem> fs, const char *appName = "Nostalgia") noexcept;
|
|
|
|
ox::Error run(Context *ctx) noexcept;
|
|
|
|
// Returns the number of milliseconds that have passed since the start of the
|
|
// program.
|
|
[[nodiscard]]
|
|
uint64_t ticksMs(Context *ctx) noexcept;
|
|
|
|
ox::Error shutdown(Context *ctx) noexcept;
|
|
|
|
}
|