Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
paths.hpp
Go to the documentation of this file.
1
3#pragma once
4
5#include <aegis2d/core/export.hpp>
6
7#include <filesystem>
8
9namespace aegis2d::core {
10
17[[nodiscard]] AEGIS2D_CORE_EXPORT std::filesystem::path executable_dir();
18
22[[nodiscard]] AEGIS2D_CORE_EXPORT std::filesystem::path asset_dir();
23
28[[nodiscard]] AEGIS2D_CORE_EXPORT std::filesystem::path
29asset_path(const std::filesystem::path& relative);
30
31} // namespace aegis2d::core
Logging, time, main loop, events and configuration shared by client and server.
Definition clock.hpp:11
std::filesystem::path executable_dir()
Folder containing the running executable.
std::filesystem::path asset_path(const std::filesystem::path &relative)
Path of one asset.
std::filesystem::path asset_dir()
Folder of the assets copied next to the executable by aegis2d_copy_assets().