evan
2026.1.4
Evan
Loading...
Searching...
No Matches
LinuxDesktopPlatform.hpp
1
/*
2
** ETIB PROJECT, 2026
3
** evan
4
** File description:
5
** LinuxDesktopPlatform
6
*/
7
8
#pragma once
9
10
#include "evan/glfw/IDesktopPlatform.hpp"
11
12
#include <filesystem>
13
14
namespace
evan
15
{
25
class
LinuxDesktopPlatform
:
public
IDesktopPlatform
26
{
27
public
:
37
LinuxDesktopPlatform
(
const
std::string &name,
const
uint32_t width,
38
const
uint32_t height);
39
46
~LinuxDesktopPlatform
() =
default
;
47
60
std::vector<std::string>
getRequiredInstanceExtensions
()
const override
;
61
71
VkSurfaceKHR
createSurface
(VkInstance instance)
const override
;
72
73
protected
:
80
std::filesystem::path
getDefaultCacheRoot
()
const override
;
81
};
82
}
// namespace evan
evan::IDesktopPlatform
Desktop platform implementation.
Definition
IDesktopPlatform.hpp:35
evan::LinuxDesktopPlatform
Linux desktop platform implementation.
Definition
LinuxDesktopPlatform.hpp:26
evan::LinuxDesktopPlatform::createSurface
VkSurfaceKHR createSurface(VkInstance instance) const override
Create a Vulkan surface for the Linux desktop platform.
Definition
LinuxDesktopPlatform.cpp:53
evan::LinuxDesktopPlatform::getDefaultCacheRoot
std::filesystem::path getDefaultCacheRoot() const override
Get the Linux cache root directory.
Definition
LinuxDesktopPlatform.cpp:72
evan::LinuxDesktopPlatform::~LinuxDesktopPlatform
~LinuxDesktopPlatform()=default
Destructor for LinuxDesktopPlatform. This destructor ensures proper cleanup of resources associated w...
evan::LinuxDesktopPlatform::getRequiredInstanceExtensions
std::vector< std::string > getRequiredInstanceExtensions() const override
Get the required instance extensions for the Linux desktop platform.
Definition
LinuxDesktopPlatform.cpp:38
headers
evan
glfw
platform
LinuxDesktopPlatform.hpp
Generated by
1.9.8