MythTV master
mythnvcontrol.h
Go to the documentation of this file.
1#ifndef MYTHNVCONTROL_H
2#define MYTHNVCONTROL_H
3
4#include <memory>
5
6#include "mythvrr.h"
7
8using NVControl = std::shared_ptr<class MythNVControl>;
9
10class MythGSync : public MythVRR
11{
12 public:
13 static inline bool s_gsyncResetOnExit = false;
14 static inline bool s_gsyncDefaultValue = false;
15 static void ForceGSync(bool Enable);
17 ~MythGSync() override;
18 void SetEnabled(bool Enable = true) override;
19
20 protected:
23};
24
25#endif
A device containing images (ie. USB stick, CD, storage group etc)
A wrapper around NVidia GSync support (when using X11 and a Display Port connection).
Definition: mythnvcontrol.h:11
MythGSync(NVControl Device, VRRType Type, bool Enabled, MythVRRRange Range)
void SetEnabled(bool Enable=true) override
static bool s_gsyncResetOnExit
Definition: mythnvcontrol.h:13
static bool s_gsyncDefaultValue
Definition: mythnvcontrol.h:14
~MythGSync() override
static MythVRRPtr CreateGSync(MythVRRRange Range)
NVControl m_nvControl
Definition: mythnvcontrol.h:22
static void ForceGSync(bool Enable)
Enable or disable GSync before the main window is created.
VRRType
Definition: mythvrr.h:19
bool Enabled() const
Definition: mythvrr.cpp:105
std::tuple< int, int, bool > MythVRRRange
Definition: mythedid.h:19
std::shared_ptr< class MythNVControl > NVControl
Definition: mythnvcontrol.h:8
std::shared_ptr< class MythVRR > MythVRRPtr
Definition: mythvrr.h:12