evan 2026.1.4
Evan
Loading...
Searching...
No Matches
LinuxXrPlatform.cpp
1/*
2** ETIB PROJECT, 2026
3** evan
4** File description:
5** LinuxXrPlatform
6*/
7
8#include "evan/openxr/platform/LinuxXrPlatform.hpp"
9
10#include <cstdlib>
11
13{
14 this->getLogger().info() << "LinuxXrPlatform initialized";
15}
16
18// Public Methods //
20
21std::vector<std::string>
26
28{
29 return nullptr;
30}
31
33// Protected Methods //
35
36std::filesystem::path evan::LinuxXrPlatform::getDefaultCacheRoot() const
37{
38 const char *xdgCache = std::getenv("XDG_CACHE_HOME");
39 if (xdgCache != nullptr && xdgCache[0] != '\0') {
40 return std::filesystem::path(xdgCache);
41 }
42
43 const char *home = std::getenv("HOME");
44 if (home == nullptr || home[0] == '\0') {
45 return {};
46 }
47 return std::filesystem::path(home) / ".cache";
48}
const XrBaseInStructure * getInstanceCreateInfo() const override
Retrieves the instance creation information for the Linux OpenXR platform.
std::vector< std::string > getRequiredInstanceExtensions() const override
Retrieves the required instance extensions for the Linux OpenXR platform.
std::filesystem::path getDefaultCacheRoot() const override
Get the Linux cache root directory.
LinuxXrPlatform()
Constructs a LinuxXrPlatform instance.
Small result wrapper used by helpers that must return both a status and a value (e....
Definition Error.hpp:89