ludus::runtime::game_host¶
Ludus Wiki · API overview · Browse API
Namespace
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
Related declarations¶
Enumerations¶
GameplaySource¶
enum class GameplaySource : uint32
Related types: uint32
DynamicModule¶
DynamicModule = 0
Static¶
Static = 1
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
Presentation¶
enum class Presentation : uint32
Related types: uint32
Windowed¶
Windowed = 0
Headless¶
Headless = 1
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
RunResult¶
enum class RunResult : int32
Related types: int32
Ok¶
Ok = 0
BadArguments¶
BadArguments = 1
ModuleLoadFailed¶
ModuleLoadFailed = 2
IncompatibleModule¶
IncompatibleModule = 3
WindowUnavailable¶
WindowUnavailable = 4
RenderingUnavailable¶
RenderingUnavailable = 5
ProtocolError¶
ProtocolError = 6
Internal¶
Internal = 7
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
Aliases¶
StaticEntryFn¶
using ludus::runtime::game_host::StaticEntryFn = game_api::GetGameApiFn
Related types: game_api::GetGameApiFn
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
int32¶
using ludus::foundation::core::int32 = std::int32_t
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
uint32¶
using ludus::foundation::core::uint32 = std::uint32_t
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
uint64¶
using ludus::foundation::core::uint64 = std::uint64_t
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
Functions¶
Run¶
RunResult ludus::runtime::game_host::Run(const HostConfig &config) noexcept
Related types: RunResult · HostConfig
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
RunMain¶
int32 ludus::runtime::game_host::RunMain(int32 argc, const char *const *argv, StaticEntryFn entry=nullptr) noexcept
Related types: int32 · StaticEntryFn
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
RunStatic¶
RunResult ludus::runtime::game_host::RunStatic(const HostConfig &config, StaticEntryFn entry) noexcept
entry is the project's LudusGetGameApi reinterpreted to StaticEntryFn. Windows sessions require standalone operation (ControlFd = -1 and AwaitLoad = false). A control channel request on Windows returns ProtocolError before invoking entry. Related types: RunResult · StaticEntryFn · HostConfig
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
InspectModule¶
RunResult ludus::runtime::game_host::InspectModule(std::string_view path, game_api::GameMetadata &metadata) noexcept
Related types: RunResult · game_api::GameMetadata
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
HostIdentity¶
std::string_view ludus::runtime::game_host::HostIdentity() noexcept
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
HostAbiMajor¶
uint32 ludus::runtime::game_host::HostAbiMajor() noexcept
Related types: uint32
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h
HostAbiMinor¶
uint32 ludus::runtime::game_host::HostAbiMinor() noexcept
Related types: uint32
Declared in modules/runtime/game_host/include/ludus/runtime/game_host/host.h