-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContextSettings_8hpp_source.htm
More file actions
140 lines (140 loc) · 20.6 KB
/
Copy pathContextSettings_8hpp_source.htm
File metadata and controls
140 lines (140 loc) · 20.6 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>cpp3ds · Documentation</title>
<link rel="stylesheet" href="../css/app.css" />
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
<script src="../bower_components/modernizr/modernizr.js"></script>
</head>
<body>
<div id="topnav" class="text-center">
<dl class="sub-nav">
<dd id="navlogo"><a href="/">
<img src="../img/logo.svg" />
</a></dd>
<dd><a href="/#what">What is it?</a></dd>
<dd><a href="/#download">Download</a></dd>
<dd><a href="/#faqs">FAQs</a></dd>
<dd class="active"><a href="/docs">Docs</a></dd>
</dl>
</div>
<div id="content">
<!-- Generated by Doxygen 1.8.10 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.htm"><span>Main Page</span></a></li>
<li><a href="modules.htm"><span>Modules</span></a></li>
<li><a href="annotated.htm"><span>Classes</span></a></li>
<li class="current"><a href="files.htm"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.htm"><span>File List</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_0b93ed46ee854382aab85c778b89946e.htm">include</a></li><li class="navelem"><a class="el" href="dir_18d409fe281a3b15bd325ab753ead42a.htm">cpp3ds</a></li><li class="navelem"><a class="el" href="dir_b6f6377c514aded02f52653f040de614.htm">Window</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">ContextSettings.hpp</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">//</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">// SFML - Simple and Fast Multimedia Library</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// Copyright (C) 2007-2015 Laurent Gomila (laurent@sfml-dev.org)</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">//</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// This software is provided 'as-is', without any express or implied warranty.</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// In no event will the authors be held liable for any damages arising from the use of this software.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">//</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// Permission is granted to anyone to use this software for any purpose,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">// including commercial applications, and to alter it and redistribute it freely,</span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// subject to the following restrictions:</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">//</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// 1. The origin of this software must not be misrepresented;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// you must not claim that you wrote the original software.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">// If you use this software in a product, an acknowledgment</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// in the product documentation would be appreciated but is not required.</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">//</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// 2. Altered source versions must be plainly marked as such,</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">// and must not be misrepresented as being the original software.</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">//</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// 3. This notice may not be removed or altered from any source distribution.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">//</span></div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"></span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#ifndef CPP3DS_CONTEXTSETTINGS_HPP</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#define CPP3DS_CONTEXTSETTINGS_HPP</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include <cpp3ds/Config.hpp></span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span><a class="code" href="namespacecpp3ds.htm">cpp3ds</a></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">enum</span> Screen</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  TopScreen = 0,</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  BottomScreen = 1,</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> };</div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm"> 47</a></span> <span class="keyword">struct </span><a class="code" href="structcpp3ds_1_1ContextSettings.htm">ContextSettings</a></div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> {</div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532"> 53</a></span>  <span class="keyword">enum</span> <a class="code" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532">Attribute</a></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  {</div>
<div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532ab90198f15a9696e1ee671d5e66e436da"> 55</a></span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532ab90198f15a9696e1ee671d5e66e436da">Default</a> = 0, </div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532aa418841a9bd0fc4d5c996ed05f8c80e2"> 56</a></span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532aa418841a9bd0fc4d5c996ed05f8c80e2">Core</a> = 1 << 0, </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532ade6d08848b5a754c63f866cfeec17062"> 57</a></span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532ade6d08848b5a754c63f866cfeec17062">Debug</a> = 1 << 2 </div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>  };</div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> </div>
<div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#a0c1212ce4e4ad51320a8ee7cf22fec52"> 71</a></span>  <span class="keyword">explicit</span> <a class="code" href="structcpp3ds_1_1ContextSettings.htm#a0c1212ce4e4ad51320a8ee7cf22fec52">ContextSettings</a>(Screen scr = TopScreen, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> depth = 0, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> stencil = 0, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> antialiasing = 0, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> major = 1, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> minor = 1, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> attributes = <a class="code" href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532ab90198f15a9696e1ee671d5e66e436da">Default</a>) :</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  screen (scr),</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#a4e5acef397dfda200444b75c0bd02d79">depthBits</a> (depth),</div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#a41a1e0a7dc6995cbd5a43181bf580c75">stencilBits</a> (stencil),</div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#aa051c485350a0599c439daf790d368f9">antialiasingLevel</a>(antialiasing),</div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#af8592c74c8e94adc54cdc317ce17b3cd">majorVersion</a> (major),</div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#afc53326a9c82c724088ea0ed7d4e8c5a">minorVersion</a> (minor),</div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="structcpp3ds_1_1ContextSettings.htm#a80518ea35cc1cbe177f15472beb5945c">attributeFlags</a> (attributes)</div>
<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  {</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  }</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="comment">// Member data</span></div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"></span> Screen screen;</div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#a4e5acef397dfda200444b75c0bd02d79"> 86</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structcpp3ds_1_1ContextSettings.htm#a4e5acef397dfda200444b75c0bd02d79">depthBits</a>; </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#a41a1e0a7dc6995cbd5a43181bf580c75"> 87</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structcpp3ds_1_1ContextSettings.htm#a41a1e0a7dc6995cbd5a43181bf580c75">stencilBits</a>; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#aa051c485350a0599c439daf790d368f9"> 88</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structcpp3ds_1_1ContextSettings.htm#aa051c485350a0599c439daf790d368f9">antialiasingLevel</a>; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#af8592c74c8e94adc54cdc317ce17b3cd"> 89</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structcpp3ds_1_1ContextSettings.htm#af8592c74c8e94adc54cdc317ce17b3cd">majorVersion</a>; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#afc53326a9c82c724088ea0ed7d4e8c5a"> 90</a></span>  <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="structcpp3ds_1_1ContextSettings.htm#afc53326a9c82c724088ea0ed7d4e8c5a">minorVersion</a>; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structcpp3ds_1_1ContextSettings.htm#a80518ea35cc1cbe177f15472beb5945c"> 91</a></span>  Uint32 <a class="code" href="structcpp3ds_1_1ContextSettings.htm#a80518ea35cc1cbe177f15472beb5945c">attributeFlags</a>; </div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> };</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> } <span class="comment">// namespace cpp3ds</span></div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="preprocessor">#endif // CPP3DS_CONTEXTSETTINGS_HPP</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> </div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="ttc" id="namespacecpp3ds_htm"><div class="ttname"><a href="namespacecpp3ds.htm">cpp3ds</a></div><div class="ttdef"><b>Definition:</b> <a href="AlResource_8hpp_source.htm#l00033">AlResource.hpp:33</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_a4e5acef397dfda200444b75c0bd02d79"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#a4e5acef397dfda200444b75c0bd02d79">cpp3ds::ContextSettings::depthBits</a></div><div class="ttdeci">unsigned int depthBits</div><div class="ttdoc">Bits of the depth buffer. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00086">ContextSettings.hpp:86</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_a80518ea35cc1cbe177f15472beb5945c"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#a80518ea35cc1cbe177f15472beb5945c">cpp3ds::ContextSettings::attributeFlags</a></div><div class="ttdeci">Uint32 attributeFlags</div><div class="ttdoc">The attribute flags to create the context with. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00091">ContextSettings.hpp:91</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_ac2b1c0fdcaa288be58708b4b63215532"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532">cpp3ds::ContextSettings::Attribute</a></div><div class="ttdeci">Attribute</div><div class="ttdoc">Enumeration of the context attribute flags. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00053">ContextSettings.hpp:53</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_a41a1e0a7dc6995cbd5a43181bf580c75"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#a41a1e0a7dc6995cbd5a43181bf580c75">cpp3ds::ContextSettings::stencilBits</a></div><div class="ttdeci">unsigned int stencilBits</div><div class="ttdoc">Bits of the stencil buffer. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00087">ContextSettings.hpp:87</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_af8592c74c8e94adc54cdc317ce17b3cd"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#af8592c74c8e94adc54cdc317ce17b3cd">cpp3ds::ContextSettings::majorVersion</a></div><div class="ttdeci">unsigned int majorVersion</div><div class="ttdoc">Major number of the context version to create. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00089">ContextSettings.hpp:89</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_ac2b1c0fdcaa288be58708b4b63215532aa418841a9bd0fc4d5c996ed05f8c80e2"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532aa418841a9bd0fc4d5c996ed05f8c80e2">cpp3ds::ContextSettings::Core</a></div><div class="ttdoc">Core attribute. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00056">ContextSettings.hpp:56</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_ac2b1c0fdcaa288be58708b4b63215532ade6d08848b5a754c63f866cfeec17062"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532ade6d08848b5a754c63f866cfeec17062">cpp3ds::ContextSettings::Debug</a></div><div class="ttdoc">Debug attribute. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00057">ContextSettings.hpp:57</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_a0c1212ce4e4ad51320a8ee7cf22fec52"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#a0c1212ce4e4ad51320a8ee7cf22fec52">cpp3ds::ContextSettings::ContextSettings</a></div><div class="ttdeci">ContextSettings(Screen scr=TopScreen, unsigned int depth=0, unsigned int stencil=0, unsigned int antialiasing=0, unsigned int major=1, unsigned int minor=1, unsigned int attributes=Default)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00071">ContextSettings.hpp:71</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_afc53326a9c82c724088ea0ed7d4e8c5a"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#afc53326a9c82c724088ea0ed7d4e8c5a">cpp3ds::ContextSettings::minorVersion</a></div><div class="ttdeci">unsigned int minorVersion</div><div class="ttdoc">Minor number of the context version to create. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00090">ContextSettings.hpp:90</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_ac2b1c0fdcaa288be58708b4b63215532ab90198f15a9696e1ee671d5e66e436da"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#ac2b1c0fdcaa288be58708b4b63215532ab90198f15a9696e1ee671d5e66e436da">cpp3ds::ContextSettings::Default</a></div><div class="ttdoc">Non-debug, compatibility context (this and the core attribute are mutually exclusive) ...</div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00055">ContextSettings.hpp:55</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm_aa051c485350a0599c439daf790d368f9"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm#aa051c485350a0599c439daf790d368f9">cpp3ds::ContextSettings::antialiasingLevel</a></div><div class="ttdeci">unsigned int antialiasingLevel</div><div class="ttdoc">Level of antialiasing. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00088">ContextSettings.hpp:88</a></div></div>
<div class="ttc" id="structcpp3ds_1_1ContextSettings_htm"><div class="ttname"><a href="structcpp3ds_1_1ContextSettings.htm">cpp3ds::ContextSettings</a></div><div class="ttdoc">Structure defining the settings of the OpenGL context attached to a window. </div><div class="ttdef"><b>Definition:</b> <a href="ContextSettings_8hpp_source.htm#l00047">ContextSettings.hpp:47</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
SFML Copyright © Laurent Gomila
</div>
</div>
</body>
</html>