diff options
Diffstat (limited to 'contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__init.html')
-rw-r--r-- | contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__init.html | 545 |
1 files changed, 545 insertions, 0 deletions
diff --git a/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__init.html b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__init.html new file mode 100644 index 0000000..baa3fcf --- /dev/null +++ b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__init.html | |||
@@ -0,0 +1,545 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html lang="en"> | ||
3 | <head> | ||
4 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> | ||
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
6 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> | ||
7 | <meta name="generator" content="Doxygen 1.9.2"/> | ||
8 | <title>GLFW: Initialization, version and error reference</title> | ||
9 | <link href="tabs.css" rel="stylesheet" type="text/css"/> | ||
10 | <script type="text/javascript" src="jquery.js"></script> | ||
11 | <script type="text/javascript" src="dynsections.js"></script> | ||
12 | <link href="search/search.css" rel="stylesheet" type="text/css"/> | ||
13 | <script type="text/javascript" src="search/searchdata.js"></script> | ||
14 | <script type="text/javascript" src="search/search.js"></script> | ||
15 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> | ||
16 | <link href="extra.css" rel="stylesheet" type="text/css"/> | ||
17 | </head> | ||
18 | <body> | ||
19 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> | ||
20 | <div id="titlearea"> | ||
21 | <div class="glfwheader"> | ||
22 | <a href="https://www.glfw.org/" id="glfwhome">GLFW</a> | ||
23 | <ul class="glfwnavbar"> | ||
24 | <li><a href="https://www.glfw.org/documentation.html">Documentation</a></li> | ||
25 | <li><a href="https://www.glfw.org/download.html">Download</a></li> | ||
26 | <li><a href="https://www.glfw.org/community.html">Community</a></li> | ||
27 | </ul> | ||
28 | </div> | ||
29 | </div> | ||
30 | <!-- end header part --> | ||
31 | <!-- Generated by Doxygen 1.9.2 --> | ||
32 | <script type="text/javascript"> | ||
33 | /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
34 | var searchBox = new SearchBox("searchBox", "search",'Search','.html'); | ||
35 | /* @license-end */ | ||
36 | </script> | ||
37 | <script type="text/javascript" src="menudata.js"></script> | ||
38 | <script type="text/javascript" src="menu.js"></script> | ||
39 | <script type="text/javascript"> | ||
40 | /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ | ||
41 | $(function() { | ||
42 | initMenu('',true,false,'search.php','Search'); | ||
43 | $(document).ready(function() { init_search(); }); | ||
44 | }); | ||
45 | /* @license-end */ | ||
46 | </script> | ||
47 | <div id="main-nav"></div> | ||
48 | </div><!-- top --> | ||
49 | <!-- window showing the filter options --> | ||
50 | <div id="MSearchSelectWindow" | ||
51 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
52 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
53 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
54 | </div> | ||
55 | |||
56 | <!-- iframe showing the search results (closed by default) --> | ||
57 | <div id="MSearchResultsWindow"> | ||
58 | <iframe src="javascript:void(0)" frameborder="0" | ||
59 | name="MSearchResults" id="MSearchResults"> | ||
60 | </iframe> | ||
61 | </div> | ||
62 | |||
63 | <div class="header"> | ||
64 | <div class="summary"> | ||
65 | <a href="#groups">Modules</a> | | ||
66 | <a href="#define-members">Macros</a> | | ||
67 | <a href="#typedef-members">Typedefs</a> | | ||
68 | <a href="#func-members">Functions</a> </div> | ||
69 | <div class="headertitle"><div class="title">Initialization, version and error reference</div></div> | ||
70 | </div><!--header--> | ||
71 | <div class="contents"> | ||
72 | <a name="details" id="details"></a><h2 class="groupheader">Description</h2> | ||
73 | <p >This is the reference documentation for initialization and termination of the library, version management and error handling. For more task-oriented information, see the <a class="el" href="intro_guide.html">Introduction to the API</a>. </p> | ||
74 | <table class="memberdecls"> | ||
75 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="groups" name="groups"></a> | ||
76 | Modules</h2></td></tr> | ||
77 | <tr class="memitem:group__errors"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__errors.html">Error codes</a></td></tr> | ||
78 | <tr class="memdesc:group__errors"><td class="mdescLeft"> </td><td class="mdescRight">Error codes. <br /></td></tr> | ||
79 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> | ||
80 | </table><table class="memberdecls"> | ||
81 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a> | ||
82 | Macros</h2></td></tr> | ||
83 | <tr class="memitem:ga2744fbb29b5631bb28802dbe0cf36eba"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba">GLFW_TRUE</a>   1</td></tr> | ||
84 | <tr class="memdesc:ga2744fbb29b5631bb28802dbe0cf36eba"><td class="mdescLeft"> </td><td class="mdescRight">One. <a href="group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba">More...</a><br /></td></tr> | ||
85 | <tr class="separator:ga2744fbb29b5631bb28802dbe0cf36eba"><td class="memSeparator" colspan="2"> </td></tr> | ||
86 | <tr class="memitem:gac877fe3b627d21ef3a0a23e0a73ba8c5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gac877fe3b627d21ef3a0a23e0a73ba8c5">GLFW_FALSE</a>   0</td></tr> | ||
87 | <tr class="memdesc:gac877fe3b627d21ef3a0a23e0a73ba8c5"><td class="mdescLeft"> </td><td class="mdescRight">Zero. <a href="group__init.html#gac877fe3b627d21ef3a0a23e0a73ba8c5">More...</a><br /></td></tr> | ||
88 | <tr class="separator:gac877fe3b627d21ef3a0a23e0a73ba8c5"><td class="memSeparator" colspan="2"> </td></tr> | ||
89 | <tr class="memitem:gab9c0534709fda03ec8959201da3a9a18"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gab9c0534709fda03ec8959201da3a9a18">GLFW_JOYSTICK_HAT_BUTTONS</a>   0x00050001</td></tr> | ||
90 | <tr class="memdesc:gab9c0534709fda03ec8959201da3a9a18"><td class="mdescLeft"> </td><td class="mdescRight">Joystick hat buttons init hint. <a href="group__init.html#gab9c0534709fda03ec8959201da3a9a18">More...</a><br /></td></tr> | ||
91 | <tr class="separator:gab9c0534709fda03ec8959201da3a9a18"><td class="memSeparator" colspan="2"> </td></tr> | ||
92 | <tr class="memitem:gab937983147a3158d45f88fad7129d9f2"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gab937983147a3158d45f88fad7129d9f2">GLFW_COCOA_CHDIR_RESOURCES</a>   0x00051001</td></tr> | ||
93 | <tr class="memdesc:gab937983147a3158d45f88fad7129d9f2"><td class="mdescLeft"> </td><td class="mdescRight">macOS specific init hint. <a href="group__init.html#gab937983147a3158d45f88fad7129d9f2">More...</a><br /></td></tr> | ||
94 | <tr class="separator:gab937983147a3158d45f88fad7129d9f2"><td class="memSeparator" colspan="2"> </td></tr> | ||
95 | <tr class="memitem:ga71e0b4ce2f2696a84a9b8c5e12dc70cf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">GLFW_COCOA_MENUBAR</a>   0x00051002</td></tr> | ||
96 | <tr class="memdesc:ga71e0b4ce2f2696a84a9b8c5e12dc70cf"><td class="mdescLeft"> </td><td class="mdescRight">macOS specific init hint. <a href="group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">More...</a><br /></td></tr> | ||
97 | <tr class="separator:ga71e0b4ce2f2696a84a9b8c5e12dc70cf"><td class="memSeparator" colspan="2"> </td></tr> | ||
98 | </table><table class="memberdecls"> | ||
99 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a> | ||
100 | Typedefs</h2></td></tr> | ||
101 | <tr class="memitem:ga8184701785c096b3862a75cda1bf44a3"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a>) (int error_code, const char *description)</td></tr> | ||
102 | <tr class="memdesc:ga8184701785c096b3862a75cda1bf44a3"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for error callbacks. <a href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">More...</a><br /></td></tr> | ||
103 | <tr class="separator:ga8184701785c096b3862a75cda1bf44a3"><td class="memSeparator" colspan="2"> </td></tr> | ||
104 | </table><table class="memberdecls"> | ||
105 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a> | ||
106 | Functions</h2></td></tr> | ||
107 | <tr class="memitem:ga317aac130a235ab08c6db0834907d85e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> (void)</td></tr> | ||
108 | <tr class="memdesc:ga317aac130a235ab08c6db0834907d85e"><td class="mdescLeft"> </td><td class="mdescRight">Initializes the GLFW library. <a href="group__init.html#ga317aac130a235ab08c6db0834907d85e">More...</a><br /></td></tr> | ||
109 | <tr class="separator:ga317aac130a235ab08c6db0834907d85e"><td class="memSeparator" colspan="2"> </td></tr> | ||
110 | <tr class="memitem:gaaae48c0a18607ea4a4ba951d939f0901"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> (void)</td></tr> | ||
111 | <tr class="memdesc:gaaae48c0a18607ea4a4ba951d939f0901"><td class="mdescLeft"> </td><td class="mdescRight">Terminates the GLFW library. <a href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">More...</a><br /></td></tr> | ||
112 | <tr class="separator:gaaae48c0a18607ea4a4ba951d939f0901"><td class="memSeparator" colspan="2"> </td></tr> | ||
113 | <tr class="memitem:ga110fd1d3f0412822b4f1908c026f724a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a> (int hint, int value)</td></tr> | ||
114 | <tr class="memdesc:ga110fd1d3f0412822b4f1908c026f724a"><td class="mdescLeft"> </td><td class="mdescRight">Sets the specified init hint to the desired value. <a href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">More...</a><br /></td></tr> | ||
115 | <tr class="separator:ga110fd1d3f0412822b4f1908c026f724a"><td class="memSeparator" colspan="2"> </td></tr> | ||
116 | <tr class="memitem:ga9f8ffaacf3c269cc48eafbf8b9b71197"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a> (int *major, int *minor, int *rev)</td></tr> | ||
117 | <tr class="memdesc:ga9f8ffaacf3c269cc48eafbf8b9b71197"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the version of the GLFW library. <a href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">More...</a><br /></td></tr> | ||
118 | <tr class="separator:ga9f8ffaacf3c269cc48eafbf8b9b71197"><td class="memSeparator" colspan="2"> </td></tr> | ||
119 | <tr class="memitem:ga026abd003c8e6501981ab1662062f1c0"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">glfwGetVersionString</a> (void)</td></tr> | ||
120 | <tr class="memdesc:ga026abd003c8e6501981ab1662062f1c0"><td class="mdescLeft"> </td><td class="mdescRight">Returns a string describing the compile-time configuration. <a href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">More...</a><br /></td></tr> | ||
121 | <tr class="separator:ga026abd003c8e6501981ab1662062f1c0"><td class="memSeparator" colspan="2"> </td></tr> | ||
122 | <tr class="memitem:ga944986b4ec0b928d488141f92982aa18"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a> (const char **description)</td></tr> | ||
123 | <tr class="memdesc:ga944986b4ec0b928d488141f92982aa18"><td class="mdescLeft"> </td><td class="mdescRight">Returns and clears the last error for the calling thread. <a href="group__init.html#ga944986b4ec0b928d488141f92982aa18">More...</a><br /></td></tr> | ||
124 | <tr class="separator:ga944986b4ec0b928d488141f92982aa18"><td class="memSeparator" colspan="2"> </td></tr> | ||
125 | <tr class="memitem:gaff45816610d53f0b83656092a4034f40"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a> (<a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> callback)</td></tr> | ||
126 | <tr class="memdesc:gaff45816610d53f0b83656092a4034f40"><td class="mdescLeft"> </td><td class="mdescRight">Sets the error callback. <a href="group__init.html#gaff45816610d53f0b83656092a4034f40">More...</a><br /></td></tr> | ||
127 | <tr class="separator:gaff45816610d53f0b83656092a4034f40"><td class="memSeparator" colspan="2"> </td></tr> | ||
128 | </table> | ||
129 | <h2 class="groupheader">Macro Definition Documentation</h2> | ||
130 | <a id="ga6337d9ea43b22fc529b2bba066b4a576" name="ga6337d9ea43b22fc529b2bba066b4a576"></a> | ||
131 | <h2 class="memtitle"><span class="permalink"><a href="#ga6337d9ea43b22fc529b2bba066b4a576">◆ </a></span>GLFW_VERSION_MAJOR</h2> | ||
132 | |||
133 | <div class="memitem"> | ||
134 | <div class="memproto"> | ||
135 | <table class="memname"> | ||
136 | <tr> | ||
137 | <td class="memname">#define GLFW_VERSION_MAJOR   3</td> | ||
138 | </tr> | ||
139 | </table> | ||
140 | </div><div class="memdoc"> | ||
141 | <p >The major version number of the GLFW header. This is incremented when the API is changed in non-compatible ways. </p> | ||
142 | |||
143 | </div> | ||
144 | </div> | ||
145 | <a id="gaf80d40f0aea7088ff337606e9c48f7a3" name="gaf80d40f0aea7088ff337606e9c48f7a3"></a> | ||
146 | <h2 class="memtitle"><span class="permalink"><a href="#gaf80d40f0aea7088ff337606e9c48f7a3">◆ </a></span>GLFW_VERSION_MINOR</h2> | ||
147 | |||
148 | <div class="memitem"> | ||
149 | <div class="memproto"> | ||
150 | <table class="memname"> | ||
151 | <tr> | ||
152 | <td class="memname">#define GLFW_VERSION_MINOR   3</td> | ||
153 | </tr> | ||
154 | </table> | ||
155 | </div><div class="memdoc"> | ||
156 | <p >The minor version number of the GLFW header. This is incremented when features are added to the API but it remains backward-compatible. </p> | ||
157 | |||
158 | </div> | ||
159 | </div> | ||
160 | <a id="gab72ae2e2035d9ea461abc3495eac0502" name="gab72ae2e2035d9ea461abc3495eac0502"></a> | ||
161 | <h2 class="memtitle"><span class="permalink"><a href="#gab72ae2e2035d9ea461abc3495eac0502">◆ </a></span>GLFW_VERSION_REVISION</h2> | ||
162 | |||
163 | <div class="memitem"> | ||
164 | <div class="memproto"> | ||
165 | <table class="memname"> | ||
166 | <tr> | ||
167 | <td class="memname">#define GLFW_VERSION_REVISION   5</td> | ||
168 | </tr> | ||
169 | </table> | ||
170 | </div><div class="memdoc"> | ||
171 | <p >The revision number of the GLFW header. This is incremented when a bug fix release is made that does not contain any API changes. </p> | ||
172 | |||
173 | </div> | ||
174 | </div> | ||
175 | <a id="ga2744fbb29b5631bb28802dbe0cf36eba" name="ga2744fbb29b5631bb28802dbe0cf36eba"></a> | ||
176 | <h2 class="memtitle"><span class="permalink"><a href="#ga2744fbb29b5631bb28802dbe0cf36eba">◆ </a></span>GLFW_TRUE</h2> | ||
177 | |||
178 | <div class="memitem"> | ||
179 | <div class="memproto"> | ||
180 | <table class="memname"> | ||
181 | <tr> | ||
182 | <td class="memname">#define GLFW_TRUE   1</td> | ||
183 | </tr> | ||
184 | </table> | ||
185 | </div><div class="memdoc"> | ||
186 | <p >This is only semantic sugar for the number 1. You can instead use <code>1</code> or <code>true</code> or <code>_True</code> or <code>GL_TRUE</code> or <code>VK_TRUE</code> or anything else that is equal to one. </p> | ||
187 | |||
188 | </div> | ||
189 | </div> | ||
190 | <a id="gac877fe3b627d21ef3a0a23e0a73ba8c5" name="gac877fe3b627d21ef3a0a23e0a73ba8c5"></a> | ||
191 | <h2 class="memtitle"><span class="permalink"><a href="#gac877fe3b627d21ef3a0a23e0a73ba8c5">◆ </a></span>GLFW_FALSE</h2> | ||
192 | |||
193 | <div class="memitem"> | ||
194 | <div class="memproto"> | ||
195 | <table class="memname"> | ||
196 | <tr> | ||
197 | <td class="memname">#define GLFW_FALSE   0</td> | ||
198 | </tr> | ||
199 | </table> | ||
200 | </div><div class="memdoc"> | ||
201 | <p >This is only semantic sugar for the number 0. You can instead use <code>0</code> or <code>false</code> or <code>_False</code> or <code>GL_FALSE</code> or <code>VK_FALSE</code> or anything else that is equal to zero. </p> | ||
202 | |||
203 | </div> | ||
204 | </div> | ||
205 | <a id="gab9c0534709fda03ec8959201da3a9a18" name="gab9c0534709fda03ec8959201da3a9a18"></a> | ||
206 | <h2 class="memtitle"><span class="permalink"><a href="#gab9c0534709fda03ec8959201da3a9a18">◆ </a></span>GLFW_JOYSTICK_HAT_BUTTONS</h2> | ||
207 | |||
208 | <div class="memitem"> | ||
209 | <div class="memproto"> | ||
210 | <table class="memname"> | ||
211 | <tr> | ||
212 | <td class="memname">#define GLFW_JOYSTICK_HAT_BUTTONS   0x00050001</td> | ||
213 | </tr> | ||
214 | </table> | ||
215 | </div><div class="memdoc"> | ||
216 | <p >Joystick hat buttons <a class="el" href="intro_guide.html#GLFW_JOYSTICK_HAT_BUTTONS">init hint</a>. </p> | ||
217 | |||
218 | </div> | ||
219 | </div> | ||
220 | <a id="gab937983147a3158d45f88fad7129d9f2" name="gab937983147a3158d45f88fad7129d9f2"></a> | ||
221 | <h2 class="memtitle"><span class="permalink"><a href="#gab937983147a3158d45f88fad7129d9f2">◆ </a></span>GLFW_COCOA_CHDIR_RESOURCES</h2> | ||
222 | |||
223 | <div class="memitem"> | ||
224 | <div class="memproto"> | ||
225 | <table class="memname"> | ||
226 | <tr> | ||
227 | <td class="memname">#define GLFW_COCOA_CHDIR_RESOURCES   0x00051001</td> | ||
228 | </tr> | ||
229 | </table> | ||
230 | </div><div class="memdoc"> | ||
231 | <p >macOS specific <a class="el" href="intro_guide.html#GLFW_COCOA_CHDIR_RESOURCES_hint">init hint</a>. </p> | ||
232 | |||
233 | </div> | ||
234 | </div> | ||
235 | <a id="ga71e0b4ce2f2696a84a9b8c5e12dc70cf" name="ga71e0b4ce2f2696a84a9b8c5e12dc70cf"></a> | ||
236 | <h2 class="memtitle"><span class="permalink"><a href="#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">◆ </a></span>GLFW_COCOA_MENUBAR</h2> | ||
237 | |||
238 | <div class="memitem"> | ||
239 | <div class="memproto"> | ||
240 | <table class="memname"> | ||
241 | <tr> | ||
242 | <td class="memname">#define GLFW_COCOA_MENUBAR   0x00051002</td> | ||
243 | </tr> | ||
244 | </table> | ||
245 | </div><div class="memdoc"> | ||
246 | <p >macOS specific <a class="el" href="intro_guide.html#GLFW_COCOA_MENUBAR_hint">init hint</a>. </p> | ||
247 | |||
248 | </div> | ||
249 | </div> | ||
250 | <h2 class="groupheader">Typedef Documentation</h2> | ||
251 | <a id="ga8184701785c096b3862a75cda1bf44a3" name="ga8184701785c096b3862a75cda1bf44a3"></a> | ||
252 | <h2 class="memtitle"><span class="permalink"><a href="#ga8184701785c096b3862a75cda1bf44a3">◆ </a></span>GLFWerrorfun</h2> | ||
253 | |||
254 | <div class="memitem"> | ||
255 | <div class="memproto"> | ||
256 | <table class="memname"> | ||
257 | <tr> | ||
258 | <td class="memname">typedef void(* GLFWerrorfun) (int error_code, const char *description)</td> | ||
259 | </tr> | ||
260 | </table> | ||
261 | </div><div class="memdoc"> | ||
262 | <p >This is the function pointer type for error callbacks. An error callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> callback_name(<span class="keywordtype">int</span> error_code, <span class="keyword">const</span> <span class="keywordtype">char</span>* description)</div> | ||
263 | </div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd> | ||
264 | <table class="params"> | ||
265 | <tr><td class="paramdir">[in]</td><td class="paramname">error_code</td><td>An <a class="el" href="group__errors.html">error code</a>. Future releases may add more error codes. </td></tr> | ||
266 | <tr><td class="paramdir">[in]</td><td class="paramname">description</td><td>A UTF-8 encoded string describing the error.</td></tr> | ||
267 | </table> | ||
268 | </dd> | ||
269 | </dl> | ||
270 | <dl class="section user"><dt>Pointer lifetime</dt><dd>The error description string is valid until the callback function returns.</dd></dl> | ||
271 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#error_handling">Error handling</a> </dd> | ||
272 | <dd> | ||
273 | <a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a></dd></dl> | ||
274 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
275 | |||
276 | </div> | ||
277 | </div> | ||
278 | <h2 class="groupheader">Function Documentation</h2> | ||
279 | <a id="ga317aac130a235ab08c6db0834907d85e" name="ga317aac130a235ab08c6db0834907d85e"></a> | ||
280 | <h2 class="memtitle"><span class="permalink"><a href="#ga317aac130a235ab08c6db0834907d85e">◆ </a></span>glfwInit()</h2> | ||
281 | |||
282 | <div class="memitem"> | ||
283 | <div class="memproto"> | ||
284 | <table class="memname"> | ||
285 | <tr> | ||
286 | <td class="memname">int glfwInit </td> | ||
287 | <td>(</td> | ||
288 | <td class="paramtype">void </td> | ||
289 | <td class="paramname"></td><td>)</td> | ||
290 | <td></td> | ||
291 | </tr> | ||
292 | </table> | ||
293 | </div><div class="memdoc"> | ||
294 | <p >This function initializes the GLFW library. Before most GLFW functions can be used, GLFW must be initialized, and before an application terminates GLFW should be terminated in order to free any resources allocated during or after initialization.</p> | ||
295 | <p >If this function fails, it calls <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> before returning. If it succeeds, you should call <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> before the application exits.</p> | ||
296 | <p >Additional calls to this function after successful initialization but before termination will return <code>GLFW_TRUE</code> immediately.</p> | ||
297 | <dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if successful, or <code>GLFW_FALSE</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl> | ||
298 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
299 | <dl class="section remark"><dt>Remarks</dt><dd><b>macOS:</b> This function will change the current directory of the application to the <code>Contents/Resources</code> subdirectory of the application's bundle, if present. This can be disabled with the <a class="el" href="group__init.html#gab937983147a3158d45f88fad7129d9f2">GLFW_COCOA_CHDIR_RESOURCES</a> init hint.</dd> | ||
300 | <dd> | ||
301 | <b>X11:</b> This function will set the <code>LC_CTYPE</code> category of the application locale according to the current environment if that category is still "C". This is because the "C" locale breaks Unicode text input.</dd></dl> | ||
302 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
303 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_init">Initialization and termination</a> </dd> | ||
304 | <dd> | ||
305 | <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a></dd></dl> | ||
306 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl> | ||
307 | |||
308 | </div> | ||
309 | </div> | ||
310 | <a id="gaaae48c0a18607ea4a4ba951d939f0901" name="gaaae48c0a18607ea4a4ba951d939f0901"></a> | ||
311 | <h2 class="memtitle"><span class="permalink"><a href="#gaaae48c0a18607ea4a4ba951d939f0901">◆ </a></span>glfwTerminate()</h2> | ||
312 | |||
313 | <div class="memitem"> | ||
314 | <div class="memproto"> | ||
315 | <table class="memname"> | ||
316 | <tr> | ||
317 | <td class="memname">void glfwTerminate </td> | ||
318 | <td>(</td> | ||
319 | <td class="paramtype">void </td> | ||
320 | <td class="paramname"></td><td>)</td> | ||
321 | <td></td> | ||
322 | </tr> | ||
323 | </table> | ||
324 | </div><div class="memdoc"> | ||
325 | <p >This function destroys all remaining windows and cursors, restores any modified gamma ramps and frees any other allocated resources. Once this function is called, you must again call <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> successfully before you will be able to use most GLFW functions.</p> | ||
326 | <p >If GLFW has been successfully initialized, this function should be called before the application exits. If initialization fails, there is no need to call this function, as it is called by <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> before it returns failure.</p> | ||
327 | <p >This function has no effect if GLFW is not initialized.</p> | ||
328 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
329 | <dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl> | ||
330 | <dl class="section warning"><dt>Warning</dt><dd>The contexts of any remaining windows must not be current on any other thread when this function is called.</dd></dl> | ||
331 | <dl class="section user"><dt>Reentrancy</dt><dd>This function must not be called from a callback.</dd></dl> | ||
332 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
333 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_init">Initialization and termination</a> </dd> | ||
334 | <dd> | ||
335 | <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a></dd></dl> | ||
336 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl> | ||
337 | |||
338 | </div> | ||
339 | </div> | ||
340 | <a id="ga110fd1d3f0412822b4f1908c026f724a" name="ga110fd1d3f0412822b4f1908c026f724a"></a> | ||
341 | <h2 class="memtitle"><span class="permalink"><a href="#ga110fd1d3f0412822b4f1908c026f724a">◆ </a></span>glfwInitHint()</h2> | ||
342 | |||
343 | <div class="memitem"> | ||
344 | <div class="memproto"> | ||
345 | <table class="memname"> | ||
346 | <tr> | ||
347 | <td class="memname">void glfwInitHint </td> | ||
348 | <td>(</td> | ||
349 | <td class="paramtype">int </td> | ||
350 | <td class="paramname"><em>hint</em>, </td> | ||
351 | </tr> | ||
352 | <tr> | ||
353 | <td class="paramkey"></td> | ||
354 | <td></td> | ||
355 | <td class="paramtype">int </td> | ||
356 | <td class="paramname"><em>value</em> </td> | ||
357 | </tr> | ||
358 | <tr> | ||
359 | <td></td> | ||
360 | <td>)</td> | ||
361 | <td></td><td></td> | ||
362 | </tr> | ||
363 | </table> | ||
364 | </div><div class="memdoc"> | ||
365 | <p >This function sets hints for the next initialization of GLFW.</p> | ||
366 | <p >The values you set hints to are never reset by GLFW, but they only take effect during initialization. Once GLFW has been initialized, any values you set will be ignored until the library is terminated and initialized again.</p> | ||
367 | <p >Some hints are platform specific. These may be set on any platform but they will only affect their specific platform. Other platforms will ignore them. Setting these hints requires no platform specific headers or functions.</p> | ||
368 | <dl class="params"><dt>Parameters</dt><dd> | ||
369 | <table class="params"> | ||
370 | <tr><td class="paramdir">[in]</td><td class="paramname">hint</td><td>The <a class="el" href="intro_guide.html#init_hints">init hint</a> to set. </td></tr> | ||
371 | <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The new value of the init hint.</td></tr> | ||
372 | </table> | ||
373 | </dd> | ||
374 | </dl> | ||
375 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a>.</dd></dl> | ||
376 | <dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl> | ||
377 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
378 | <dl class="section see"><dt>See also</dt><dd>init_hints </dd> | ||
379 | <dd> | ||
380 | <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e" title="Initializes the GLFW library.">glfwInit</a></dd></dl> | ||
381 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
382 | |||
383 | </div> | ||
384 | </div> | ||
385 | <a id="ga9f8ffaacf3c269cc48eafbf8b9b71197" name="ga9f8ffaacf3c269cc48eafbf8b9b71197"></a> | ||
386 | <h2 class="memtitle"><span class="permalink"><a href="#ga9f8ffaacf3c269cc48eafbf8b9b71197">◆ </a></span>glfwGetVersion()</h2> | ||
387 | |||
388 | <div class="memitem"> | ||
389 | <div class="memproto"> | ||
390 | <table class="memname"> | ||
391 | <tr> | ||
392 | <td class="memname">void glfwGetVersion </td> | ||
393 | <td>(</td> | ||
394 | <td class="paramtype">int * </td> | ||
395 | <td class="paramname"><em>major</em>, </td> | ||
396 | </tr> | ||
397 | <tr> | ||
398 | <td class="paramkey"></td> | ||
399 | <td></td> | ||
400 | <td class="paramtype">int * </td> | ||
401 | <td class="paramname"><em>minor</em>, </td> | ||
402 | </tr> | ||
403 | <tr> | ||
404 | <td class="paramkey"></td> | ||
405 | <td></td> | ||
406 | <td class="paramtype">int * </td> | ||
407 | <td class="paramname"><em>rev</em> </td> | ||
408 | </tr> | ||
409 | <tr> | ||
410 | <td></td> | ||
411 | <td>)</td> | ||
412 | <td></td><td></td> | ||
413 | </tr> | ||
414 | </table> | ||
415 | </div><div class="memdoc"> | ||
416 | <p >This function retrieves the major, minor and revision numbers of the GLFW library. It is intended for when you are using GLFW as a shared library and want to ensure that you are using the minimum required version.</p> | ||
417 | <p >Any or all of the version arguments may be <code>NULL</code>.</p> | ||
418 | <dl class="params"><dt>Parameters</dt><dd> | ||
419 | <table class="params"> | ||
420 | <tr><td class="paramdir">[out]</td><td class="paramname">major</td><td>Where to store the major version number, or <code>NULL</code>. </td></tr> | ||
421 | <tr><td class="paramdir">[out]</td><td class="paramname">minor</td><td>Where to store the minor version number, or <code>NULL</code>. </td></tr> | ||
422 | <tr><td class="paramdir">[out]</td><td class="paramname">rev</td><td>Where to store the revision number, or <code>NULL</code>.</td></tr> | ||
423 | </table> | ||
424 | </dd> | ||
425 | </dl> | ||
426 | <dl class="section user"><dt>Errors</dt><dd>None.</dd></dl> | ||
427 | <dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl> | ||
428 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
429 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_version">Version management</a> </dd> | ||
430 | <dd> | ||
431 | <a class="el" href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">glfwGetVersionString</a></dd></dl> | ||
432 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl> | ||
433 | |||
434 | </div> | ||
435 | </div> | ||
436 | <a id="ga026abd003c8e6501981ab1662062f1c0" name="ga026abd003c8e6501981ab1662062f1c0"></a> | ||
437 | <h2 class="memtitle"><span class="permalink"><a href="#ga026abd003c8e6501981ab1662062f1c0">◆ </a></span>glfwGetVersionString()</h2> | ||
438 | |||
439 | <div class="memitem"> | ||
440 | <div class="memproto"> | ||
441 | <table class="memname"> | ||
442 | <tr> | ||
443 | <td class="memname">const char * glfwGetVersionString </td> | ||
444 | <td>(</td> | ||
445 | <td class="paramtype">void </td> | ||
446 | <td class="paramname"></td><td>)</td> | ||
447 | <td></td> | ||
448 | </tr> | ||
449 | </table> | ||
450 | </div><div class="memdoc"> | ||
451 | <p >This function returns the compile-time generated <a class="el" href="intro_guide.html#intro_version_string">version string</a> of the GLFW library binary. It describes the version, platform, compiler and any platform-specific compile-time options. It should not be confused with the OpenGL or OpenGL ES version string, queried with <code>glGetString</code>.</p> | ||
452 | <p ><b>Do not use the version string</b> to parse the GLFW library version. The <a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a> function provides the version of the running library binary in numerical format.</p> | ||
453 | <dl class="section return"><dt>Returns</dt><dd>The ASCII encoded GLFW version string.</dd></dl> | ||
454 | <dl class="section user"><dt>Errors</dt><dd>None.</dd></dl> | ||
455 | <dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl> | ||
456 | <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is static and compile-time generated.</dd></dl> | ||
457 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
458 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_version">Version management</a> </dd> | ||
459 | <dd> | ||
460 | <a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a></dd></dl> | ||
461 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
462 | |||
463 | </div> | ||
464 | </div> | ||
465 | <a id="ga944986b4ec0b928d488141f92982aa18" name="ga944986b4ec0b928d488141f92982aa18"></a> | ||
466 | <h2 class="memtitle"><span class="permalink"><a href="#ga944986b4ec0b928d488141f92982aa18">◆ </a></span>glfwGetError()</h2> | ||
467 | |||
468 | <div class="memitem"> | ||
469 | <div class="memproto"> | ||
470 | <table class="memname"> | ||
471 | <tr> | ||
472 | <td class="memname">int glfwGetError </td> | ||
473 | <td>(</td> | ||
474 | <td class="paramtype">const char ** </td> | ||
475 | <td class="paramname"><em>description</em></td><td>)</td> | ||
476 | <td></td> | ||
477 | </tr> | ||
478 | </table> | ||
479 | </div><div class="memdoc"> | ||
480 | <p >This function returns and clears the <a class="el" href="group__errors.html">error code</a> of the last error that occurred on the calling thread, and optionally a UTF-8 encoded human-readable description of it. If no error has occurred since the last call, it returns <a class="el" href="group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4">GLFW_NO_ERROR</a> (zero) and the description pointer is set to <code>NULL</code>.</p> | ||
481 | <dl class="params"><dt>Parameters</dt><dd> | ||
482 | <table class="params"> | ||
483 | <tr><td class="paramdir">[in]</td><td class="paramname">description</td><td>Where to store the error description pointer, or <code>NULL</code>. </td></tr> | ||
484 | </table> | ||
485 | </dd> | ||
486 | </dl> | ||
487 | <dl class="section return"><dt>Returns</dt><dd>The last error code for the calling thread, or <a class="el" href="group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4">GLFW_NO_ERROR</a> (zero).</dd></dl> | ||
488 | <dl class="section user"><dt>Errors</dt><dd>None.</dd></dl> | ||
489 | <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is allocated and freed by GLFW. You should not free it yourself. It is guaranteed to be valid only until the next error occurs or the library is terminated.</dd></dl> | ||
490 | <dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl> | ||
491 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
492 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#error_handling">Error handling</a> </dd> | ||
493 | <dd> | ||
494 | <a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a></dd></dl> | ||
495 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl> | ||
496 | |||
497 | </div> | ||
498 | </div> | ||
499 | <a id="gaff45816610d53f0b83656092a4034f40" name="gaff45816610d53f0b83656092a4034f40"></a> | ||
500 | <h2 class="memtitle"><span class="permalink"><a href="#gaff45816610d53f0b83656092a4034f40">◆ </a></span>glfwSetErrorCallback()</h2> | ||
501 | |||
502 | <div class="memitem"> | ||
503 | <div class="memproto"> | ||
504 | <table class="memname"> | ||
505 | <tr> | ||
506 | <td class="memname"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> glfwSetErrorCallback </td> | ||
507 | <td>(</td> | ||
508 | <td class="paramtype"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> </td> | ||
509 | <td class="paramname"><em>callback</em></td><td>)</td> | ||
510 | <td></td> | ||
511 | </tr> | ||
512 | </table> | ||
513 | </div><div class="memdoc"> | ||
514 | <p >This function sets the error callback, which is called with an error code and a human-readable description each time a GLFW error occurs.</p> | ||
515 | <p >The error code is set before the callback is called. Calling <a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a> from the error callback will return the same value as the error code argument.</p> | ||
516 | <p >The error callback is called on the thread where the error occurred. If you are using GLFW from multiple threads, your error callback needs to be written accordingly.</p> | ||
517 | <p >Because the description string may have been generated specifically for that error, it is not guaranteed to be valid after the callback has returned. If you wish to use it after the callback returns, you need to make a copy.</p> | ||
518 | <p >Once set, the error callback remains set even after the library has been terminated.</p> | ||
519 | <dl class="params"><dt>Parameters</dt><dd> | ||
520 | <table class="params"> | ||
521 | <tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr> | ||
522 | </table> | ||
523 | </dd> | ||
524 | </dl> | ||
525 | <dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set.</dd></dl> | ||
526 | <dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> callback_name(<span class="keywordtype">int</span> error_code, <span class="keyword">const</span> <span class="keywordtype">char</span>* description)</div> | ||
527 | </div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">callback pointer type</a>.</dd></dl> | ||
528 | <dl class="section user"><dt>Errors</dt><dd>None.</dd></dl> | ||
529 | <dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl> | ||
530 | <dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl> | ||
531 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#error_handling">Error handling</a> </dd> | ||
532 | <dd> | ||
533 | <a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a></dd></dl> | ||
534 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
535 | |||
536 | </div> | ||
537 | </div> | ||
538 | </div><!-- contents --> | ||
539 | <address class="footer"> | ||
540 | <p> | ||
541 | Last update on Thu Oct 28 2021 for GLFW 3.3.5 | ||
542 | </p> | ||
543 | </address> | ||
544 | </body> | ||
545 | </html> | ||