MXVK Vulkan Framework
0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk_runtime_options.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
namespace
mxvk
{
6
[[nodiscard]]
inline
bool
&
defaultEnableScreenshotStorage
() {
7
static
bool
enabled =
false
;
8
return
enabled;
9
}
10
11
inline
void
setDefaultEnableScreenshot
(
bool
enabled) {
12
defaultEnableScreenshotStorage
() = enabled;
13
}
14
15
[[nodiscard]]
inline
bool
defaultEnableScreenshot
() {
16
return
defaultEnableScreenshotStorage
();
17
}
18
19
[[nodiscard]]
inline
std::string &
defaultExecutableNameStorage
() {
20
static
std::string name =
"mxvk"
;
21
return
name;
22
}
23
24
inline
void
setDefaultExecutableName
(
const
std::string &name) {
25
defaultExecutableNameStorage
() = name.empty() ?
"mxvk"
: name;
26
}
27
28
[[nodiscard]]
inline
const
std::string &
defaultExecutableName
() {
29
return
defaultExecutableNameStorage
();
30
}
31
}
// namespace mxvk
mxvk
Utilities for loading and saving PNG images.
Definition
mxvk.hpp:30
mxvk::setDefaultEnableScreenshot
void setDefaultEnableScreenshot(bool enabled)
Definition
mxvk_runtime_options.hpp:11
mxvk::defaultEnableScreenshot
bool defaultEnableScreenshot()
Definition
mxvk_runtime_options.hpp:15
mxvk::defaultExecutableName
const std::string & defaultExecutableName()
Definition
mxvk_runtime_options.hpp:28
mxvk::defaultExecutableNameStorage
std::string & defaultExecutableNameStorage()
Definition
mxvk_runtime_options.hpp:19
mxvk::setDefaultExecutableName
void setDefaultExecutableName(const std::string &name)
Definition
mxvk_runtime_options.hpp:24
mxvk::defaultEnableScreenshotStorage
bool & defaultEnableScreenshotStorage()
Definition
mxvk_runtime_options.hpp:6
mxvk
include
mxvk
mxvk_runtime_options.hpp
Generated by
1.16.1