Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
shared_library.hpp File Reference

Shared libraries loaded at run time, and the C entry point that tells an Aegis2D library and its version. More...

#include <aegis2d/core/export.hpp>
#include <cstdint>
#include <filesystem>
#include <stdexcept>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  aegis2d::core::LibraryInfo
 What an Aegis2D library tells about itself, from its C entry point. More...
 
class  aegis2d::core::LibraryError
 A shared library could not be opened or is not one the engine can load. More...
 
class  aegis2d::core::SharedLibrary
 A shared library opened at run time (.so, .dylib or .dll), closed when destroyed. More...
 
struct  aegis2d::core::EngineLibrary
 An Aegis2D library, opened and checked by load_library(). More...
 

Namespaces

namespace  aegis2d
 Root namespace of the engine.
 
namespace  aegis2d::core
 Logging, time, main loop, events and configuration shared by client and server.
 

Functions

EngineLibrary aegis2d::core::load_library (const std::filesystem::path &path, std::uint32_t api_version=library_api_version)
 Opens an Aegis2D library and checks that the engine can use it.
 

Variables

constexpr std::uint32_t aegis2d::core::library_api_version = 1
 Version of the interface between the engine and the libraries it loads.
 
constexpr std::string_view aegis2d::core::library_entry = "aegis2d_library_entry"
 Name of the C function every Aegis2D library exports (see LibraryInfo).
 

Detailed Description

Shared libraries loaded at run time, and the C entry point that tells an Aegis2D library and its version.