Centralized accessors for project and asset paths.
More...
#include <Path.h>
|
| static std::string | getEngineRoot () |
| | Gets the engine root directory at runtime.
|
| static constexpr std::string | getProjectRoot () |
| | Gets the root location of the whole game. This is.
|
| static constexpr auto | engineGeometry () |
| | Path to engine geometry assets @lsp_source_path Engine/geometry.
|
| static constexpr auto | gameGeometry () |
| | Path to game geometry assets @lsp_source_path AirHockey/Data/geometry.
|
| static constexpr auto | gameAudio () |
| | Path to game Audio assets @lsp_source_path AirHockey/Data/Audio.
|
| static constexpr auto | engineShaders () |
| | Path to engine shaders @lsp_source_path Engine/shaders.
|
| static constexpr auto | engineTextures () |
| | Path to engine textures @lsp_source_path Engine/textures.
|
| static constexpr auto | engineFonts () |
| | Path to font assets @lsp_source_path Engine/fonts.
|
| static constexpr auto | engineSounds () |
| | Path to engine audio files @lsp_source_path Engine/sounds.
|
| static bool | doesFileExist (const std::filesystem::path &path) |
| | Checks if a file at a filepath exists.
|
| static bool | doesGltfFileExist (const std::filesystem::path &path) |
| | Checks if the specified filepath exists at the given path and is a gltf file.
|
| static bool | doesExrFileExist (const std::filesystem::path &path) |
| | Checks if the specified filepath exists at the given path and if the file is an exr file.
|
| static bool | doesFileOfTypeExist (const std::filesystem::path &path, const std::string &extension) |
| | Checks if the specified filepath exists and if the file at the path is of a file type.
|
Centralized accessors for project and asset paths.
Definition at line 109 of file Path.h.
◆ doesExrFileExist()
| bool Engine::Core::Path::doesExrFileExist |
( |
const std::filesystem::path & | path | ) |
|
|
static |
Checks if the specified filepath exists at the given path and if the file is an exr file.
- Parameters
-
- Returns
- ture if the file exists and if it is a exr file
◆ doesFileExist()
| bool Engine::Core::Path::doesFileExist |
( |
const std::filesystem::path & | path | ) |
|
|
static |
Checks if a file at a filepath exists.
- Parameters
-
- Returns
- true if the file exists
◆ doesFileOfTypeExist()
| bool Engine::Core::Path::doesFileOfTypeExist |
( |
const std::filesystem::path & | path, |
|
|
const std::string & | extension ) |
|
static |
Checks if the specified filepath exists and if the file at the path is of a file type.
- Parameters
-
| path | filepath to check |
| extension | filetype extension like ".exr" |
- Returns
- true if the object exists and is of the specified file extension
◆ doesGltfFileExist()
| bool Engine::Core::Path::doesGltfFileExist |
( |
const std::filesystem::path & | path | ) |
|
|
static |
Checks if the specified filepath exists at the given path and is a gltf file.
- Parameters
-
- Returns
- true if the file exists and if it is a gltf file
◆ engineFonts()
| constexpr auto Engine::Core::Path::engineFonts |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ engineGeometry()
| constexpr auto Engine::Core::Path::engineGeometry |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ engineShaders()
| constexpr auto Engine::Core::Path::engineShaders |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ engineSounds()
| constexpr auto Engine::Core::Path::engineSounds |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ engineTextures()
| constexpr auto Engine::Core::Path::engineTextures |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ gameAudio()
| constexpr auto Engine::Core::Path::gameAudio |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ gameGeometry()
| constexpr auto Engine::Core::Path::gameGeometry |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ getEngineRoot()
| std::string Engine::Core::Path::getEngineRoot |
( |
| ) |
|
|
static |
Gets the engine root directory at runtime.
- Returns
- Filesystem path string for the engine root.
◆ getProjectRoot()
| constexpr std::string Engine::Core::Path::getProjectRoot |
( |
| ) |
|
|
staticconstexpr |
Gets the root location of the whole game. This is.
The documentation for this class was generated from the following file:
- /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Files/Path.h