-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonitor.hpp
73 lines (54 loc) · 1.2 KB
/
monitor.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef SRE_MONITOR_HPP
#define SRE_MONITOR_HPP
//== includes ==//
#include <list>
//== namespace ==//
namespace sre
{
//== forward declarations ==//
class VideoMode;
class GammaRamp;
class Monitor;
//== classes ==//
class VideoMode
{
const GLFWvidmode * vidmode;
public:
// ctor
VideoMode ();
VideoMode ( const GLFWvidmode * vidmode );
VideoMode ( const GLFWvidmode& vidmode);
// get methods
int width ();
int height ();
int redBits ();
int greenBits ();
int blueBits ();
int refreshRate ();
// // static methods
}; //VideoMode
class GammaRamp
{
const GLFWgammaramp * gammaRamp;
public:
GammaRamp ( const GLFWgammaramp * gammaRamp );
const GLFWgammaramp * getGLFWgammaramp ();
}; //GammaRamp
class Monitor
{
GLFWmonitor * monitor;
public:
// ctor
Monitor ( GLFWmonitor * monitor );
// get methods
VideoMode getVideoMode ();
std::list<VideoMode> getVideoModes ();
GLFWmonitor * getGLFWMonitor() const;
// set methods
void setGammaRamp ( GammaRamp gammaRamp );
void setGamma ( float gamma );
// static methods
static Monitor getPrimaryMonitor ();
}; //Monitor
} //namespace sre
#endif // SRE_MONITOR_HPP