NAP
videodriver.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 // External includes
8 #include <nap/numeric.h>
9 #include <string>
10 #include <utility/dllexport.h>
11 
12 namespace nap
13 {
20  enum class EVideoDriver : int8
21  {
22  Default = 0,
23  Windows = 1,
24  X11 = 2,
25  Wayland = 3,
26  Unknown = 4
27  };
28 
33  NAPAPI std::string toString(EVideoDriver driver);
34 
39  NAPAPI EVideoDriver fromString(const std::string& driverName);
40 }
nap::toString
NAPAPI std::string toString(EDay day)
nap::EVideoDriver::Windows
@ Windows
Property: 'Windows' windowing system.
nap::EVideoDriver::Wayland
@ Wayland
Property: 'Wayland' Linux windowing system.
nap::EVideoDriver
EVideoDriver
Definition: videodriver.h:20
nap::int8
int8_t int8
Definition: numeric.h:15
nap::EVideoDriver::Default
@ Default
Property: 'Default' Most reasonable, first available video back-end.
nap::EVideoDriver::Unknown
@ Unknown
Unsupported video driver [NOT EXPOSED].
nap::EVideoDriver::X11
@ X11
Property: 'X11' Linux windowing system.
nap
Definition: templateapp.h:17
nap::fromString
NAPAPI EVideoDriver fromString(const std::string &driverName)