8#include "evan/glfw/platform/LinuxDesktopPlatform.hpp"
18 <<
"Initializing LinuxDesktopPlatform with window name: " <<
name
24 this->
getLogger().info() <<
"Creating GLFW window";
28 this->
getLogger().error() <<
"Failed to create GLFW window";
29 throw std::runtime_error(
"Failed to create GLFW window");
37std::vector<std::string>
46 if (enableValidationLayers ==
true) {
56 <<
"Creating Vulkan surface for LinuxDesktopPlatform";
61 throw std::runtime_error(
"Failed to create Vulkan surface");
63 this->
getLogger().info() <<
"Vulkan surface created successfully";
74 const char *
xdgCache = std::getenv(
"XDG_CACHE_HOME");
76 return std::filesystem::path(
xdgCache);
79 const char *
home = std::getenv(
"HOME");
80 if (
home ==
nullptr ||
home[0] ==
'\0') {
83 return std::filesystem::path(
home) /
".cache";
Small result wrapper used by helpers that must return both a status and a value (e....