diff options
Diffstat (limited to 'contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__context.html')
-rw-r--r-- | contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__context.html | 295 |
1 files changed, 295 insertions, 0 deletions
diff --git a/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__context.html b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__context.html new file mode 100644 index 0000000..fc874f7 --- /dev/null +++ b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/group__context.html | |||
@@ -0,0 +1,295 @@ | |||
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: Context 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="#typedef-members">Typedefs</a> | | ||
66 | <a href="#func-members">Functions</a> </div> | ||
67 | <div class="headertitle"><div class="title">Context reference</div></div> | ||
68 | </div><!--header--> | ||
69 | <div class="contents"> | ||
70 | <a name="details" id="details"></a><h2 class="groupheader">Description</h2> | ||
71 | <p >This is the reference documentation for OpenGL and OpenGL ES context related functions. For more task-oriented information, see the <a class="el" href="context_guide.html">Context guide</a>. </p> | ||
72 | <table class="memberdecls"> | ||
73 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a> | ||
74 | Typedefs</h2></td></tr> | ||
75 | <tr class="memitem:ga3d47c2d2fbe0be9c505d0e04e91a133c"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__context.html#ga3d47c2d2fbe0be9c505d0e04e91a133c">GLFWglproc</a>) (void)</td></tr> | ||
76 | <tr class="memdesc:ga3d47c2d2fbe0be9c505d0e04e91a133c"><td class="mdescLeft"> </td><td class="mdescRight">Client API function pointer type. <a href="group__context.html#ga3d47c2d2fbe0be9c505d0e04e91a133c">More...</a><br /></td></tr> | ||
77 | <tr class="separator:ga3d47c2d2fbe0be9c505d0e04e91a133c"><td class="memSeparator" colspan="2"> </td></tr> | ||
78 | </table><table class="memberdecls"> | ||
79 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a> | ||
80 | Functions</h2></td></tr> | ||
81 | <tr class="memitem:ga1c04dc242268f827290fe40aa1c91157"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a> (<a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> *window)</td></tr> | ||
82 | <tr class="memdesc:ga1c04dc242268f827290fe40aa1c91157"><td class="mdescLeft"> </td><td class="mdescRight">Makes the context of the specified window current for the calling thread. <a href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">More...</a><br /></td></tr> | ||
83 | <tr class="separator:ga1c04dc242268f827290fe40aa1c91157"><td class="memSeparator" colspan="2"> </td></tr> | ||
84 | <tr class="memitem:gad94e80185397a6cf5fe2ab30567af71c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__context.html#gad94e80185397a6cf5fe2ab30567af71c">glfwGetCurrentContext</a> (void)</td></tr> | ||
85 | <tr class="memdesc:gad94e80185397a6cf5fe2ab30567af71c"><td class="mdescLeft"> </td><td class="mdescRight">Returns the window whose context is current on the calling thread. <a href="group__context.html#gad94e80185397a6cf5fe2ab30567af71c">More...</a><br /></td></tr> | ||
86 | <tr class="separator:gad94e80185397a6cf5fe2ab30567af71c"><td class="memSeparator" colspan="2"> </td></tr> | ||
87 | <tr class="memitem:ga6d4e0cdf151b5e579bd67f13202994ed"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed">glfwSwapInterval</a> (int interval)</td></tr> | ||
88 | <tr class="memdesc:ga6d4e0cdf151b5e579bd67f13202994ed"><td class="mdescLeft"> </td><td class="mdescRight">Sets the swap interval for the current context. <a href="group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed">More...</a><br /></td></tr> | ||
89 | <tr class="separator:ga6d4e0cdf151b5e579bd67f13202994ed"><td class="memSeparator" colspan="2"> </td></tr> | ||
90 | <tr class="memitem:ga87425065c011cef1ebd6aac75e059dfa"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__context.html#ga87425065c011cef1ebd6aac75e059dfa">glfwExtensionSupported</a> (const char *extension)</td></tr> | ||
91 | <tr class="memdesc:ga87425065c011cef1ebd6aac75e059dfa"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the specified extension is available. <a href="group__context.html#ga87425065c011cef1ebd6aac75e059dfa">More...</a><br /></td></tr> | ||
92 | <tr class="separator:ga87425065c011cef1ebd6aac75e059dfa"><td class="memSeparator" colspan="2"> </td></tr> | ||
93 | <tr class="memitem:ga35f1837e6f666781842483937612f163"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__context.html#ga3d47c2d2fbe0be9c505d0e04e91a133c">GLFWglproc</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__context.html#ga35f1837e6f666781842483937612f163">glfwGetProcAddress</a> (const char *procname)</td></tr> | ||
94 | <tr class="memdesc:ga35f1837e6f666781842483937612f163"><td class="mdescLeft"> </td><td class="mdescRight">Returns the address of the specified function for the current context. <a href="group__context.html#ga35f1837e6f666781842483937612f163">More...</a><br /></td></tr> | ||
95 | <tr class="separator:ga35f1837e6f666781842483937612f163"><td class="memSeparator" colspan="2"> </td></tr> | ||
96 | </table> | ||
97 | <h2 class="groupheader">Typedef Documentation</h2> | ||
98 | <a id="ga3d47c2d2fbe0be9c505d0e04e91a133c" name="ga3d47c2d2fbe0be9c505d0e04e91a133c"></a> | ||
99 | <h2 class="memtitle"><span class="permalink"><a href="#ga3d47c2d2fbe0be9c505d0e04e91a133c">◆ </a></span>GLFWglproc</h2> | ||
100 | |||
101 | <div class="memitem"> | ||
102 | <div class="memproto"> | ||
103 | <table class="memname"> | ||
104 | <tr> | ||
105 | <td class="memname">typedef void(* GLFWglproc) (void)</td> | ||
106 | </tr> | ||
107 | </table> | ||
108 | </div><div class="memdoc"> | ||
109 | <p >Generic function pointer used for returning client API function pointers without forcing a cast from a regular pointer.</p> | ||
110 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="context_guide.html#context_glext">OpenGL and OpenGL ES extensions</a> </dd> | ||
111 | <dd> | ||
112 | <a class="el" href="group__context.html#ga35f1837e6f666781842483937612f163">glfwGetProcAddress</a></dd></dl> | ||
113 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
114 | |||
115 | </div> | ||
116 | </div> | ||
117 | <h2 class="groupheader">Function Documentation</h2> | ||
118 | <a id="ga1c04dc242268f827290fe40aa1c91157" name="ga1c04dc242268f827290fe40aa1c91157"></a> | ||
119 | <h2 class="memtitle"><span class="permalink"><a href="#ga1c04dc242268f827290fe40aa1c91157">◆ </a></span>glfwMakeContextCurrent()</h2> | ||
120 | |||
121 | <div class="memitem"> | ||
122 | <div class="memproto"> | ||
123 | <table class="memname"> | ||
124 | <tr> | ||
125 | <td class="memname">void glfwMakeContextCurrent </td> | ||
126 | <td>(</td> | ||
127 | <td class="paramtype"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * </td> | ||
128 | <td class="paramname"><em>window</em></td><td>)</td> | ||
129 | <td></td> | ||
130 | </tr> | ||
131 | </table> | ||
132 | </div><div class="memdoc"> | ||
133 | <p >This function makes the OpenGL or OpenGL ES context of the specified window current on the calling thread. A context must only be made current on a single thread at a time and each thread can have only a single current context at a time.</p> | ||
134 | <p >When moving a context between threads, you must make it non-current on the old thread before making it current on the new one.</p> | ||
135 | <p >By default, making a context non-current implicitly forces a pipeline flush. On machines that support <code>GL_KHR_context_flush_control</code>, you can control whether a context performs this flush by setting the <a class="el" href="window_guide.html#GLFW_CONTEXT_RELEASE_BEHAVIOR_hint">GLFW_CONTEXT_RELEASE_BEHAVIOR</a> hint.</p> | ||
136 | <p >The specified window must have an OpenGL or OpenGL ES context. Specifying a window without a context will generate a <a class="el" href="group__errors.html#gacff24d2757da752ae4c80bf452356487">GLFW_NO_WINDOW_CONTEXT</a> error.</p> | ||
137 | <dl class="params"><dt>Parameters</dt><dd> | ||
138 | <table class="params"> | ||
139 | <tr><td class="paramdir">[in]</td><td class="paramname">window</td><td>The window whose context to make current, or <code>NULL</code> to detach the current context.</td></tr> | ||
140 | </table> | ||
141 | </dd> | ||
142 | </dl> | ||
143 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gacff24d2757da752ae4c80bf452356487">GLFW_NO_WINDOW_CONTEXT</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
144 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
145 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="context_guide.html#context_current">Current context</a> </dd> | ||
146 | <dd> | ||
147 | <a class="el" href="group__context.html#gad94e80185397a6cf5fe2ab30567af71c">glfwGetCurrentContext</a></dd></dl> | ||
148 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
149 | |||
150 | </div> | ||
151 | </div> | ||
152 | <a id="gad94e80185397a6cf5fe2ab30567af71c" name="gad94e80185397a6cf5fe2ab30567af71c"></a> | ||
153 | <h2 class="memtitle"><span class="permalink"><a href="#gad94e80185397a6cf5fe2ab30567af71c">◆ </a></span>glfwGetCurrentContext()</h2> | ||
154 | |||
155 | <div class="memitem"> | ||
156 | <div class="memproto"> | ||
157 | <table class="memname"> | ||
158 | <tr> | ||
159 | <td class="memname"><a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a> * glfwGetCurrentContext </td> | ||
160 | <td>(</td> | ||
161 | <td class="paramtype">void </td> | ||
162 | <td class="paramname"></td><td>)</td> | ||
163 | <td></td> | ||
164 | </tr> | ||
165 | </table> | ||
166 | </div><div class="memdoc"> | ||
167 | <p >This function returns the window whose OpenGL or OpenGL ES context is current on the calling thread.</p> | ||
168 | <dl class="section return"><dt>Returns</dt><dd>The window whose context is current, or <code>NULL</code> if no window's context is current.</dd></dl> | ||
169 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl> | ||
170 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
171 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="context_guide.html#context_current">Current context</a> </dd> | ||
172 | <dd> | ||
173 | <a class="el" href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a></dd></dl> | ||
174 | <dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl> | ||
175 | |||
176 | </div> | ||
177 | </div> | ||
178 | <a id="ga6d4e0cdf151b5e579bd67f13202994ed" name="ga6d4e0cdf151b5e579bd67f13202994ed"></a> | ||
179 | <h2 class="memtitle"><span class="permalink"><a href="#ga6d4e0cdf151b5e579bd67f13202994ed">◆ </a></span>glfwSwapInterval()</h2> | ||
180 | |||
181 | <div class="memitem"> | ||
182 | <div class="memproto"> | ||
183 | <table class="memname"> | ||
184 | <tr> | ||
185 | <td class="memname">void glfwSwapInterval </td> | ||
186 | <td>(</td> | ||
187 | <td class="paramtype">int </td> | ||
188 | <td class="paramname"><em>interval</em></td><td>)</td> | ||
189 | <td></td> | ||
190 | </tr> | ||
191 | </table> | ||
192 | </div><div class="memdoc"> | ||
193 | <p >This function sets the swap interval for the current OpenGL or OpenGL ES context, i.e. the number of screen updates to wait from the time <a class="el" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a> was called before swapping the buffers and returning. This is sometimes called <em>vertical synchronization</em>, <em>vertical retrace synchronization</em> or just <em>vsync</em>.</p> | ||
194 | <p >A context that supports either of the <code>WGL_EXT_swap_control_tear</code> and <code>GLX_EXT_swap_control_tear</code> extensions also accepts <em>negative</em> swap intervals, which allows the driver to swap immediately even if a frame arrives a little bit late. You can check for these extensions with <a class="el" href="group__context.html#ga87425065c011cef1ebd6aac75e059dfa">glfwExtensionSupported</a>.</p> | ||
195 | <p >A context must be current on the calling thread. Calling this function without a current context will cause a <a class="el" href="group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0">GLFW_NO_CURRENT_CONTEXT</a> error.</p> | ||
196 | <p >This function does not apply to Vulkan. If you are rendering with Vulkan, see the present mode of your swapchain instead.</p> | ||
197 | <dl class="params"><dt>Parameters</dt><dd> | ||
198 | <table class="params"> | ||
199 | <tr><td class="paramdir">[in]</td><td class="paramname">interval</td><td>The minimum number of screen updates to wait for until the buffers are swapped by <a class="el" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a>.</td></tr> | ||
200 | </table> | ||
201 | </dd> | ||
202 | </dl> | ||
203 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0">GLFW_NO_CURRENT_CONTEXT</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
204 | <dl class="section remark"><dt>Remarks</dt><dd>This function is not called during context creation, leaving the swap interval set to whatever is the default on that platform. This is done because some swap interval extensions used by GLFW do not allow the swap interval to be reset to zero once it has been set to a non-zero value.</dd> | ||
205 | <dd> | ||
206 | Some GPU drivers do not honor the requested swap interval, either because of a user setting that overrides the application's request or due to bugs in the driver.</dd></dl> | ||
207 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
208 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="window_guide.html#buffer_swap">Buffer swapping</a> </dd> | ||
209 | <dd> | ||
210 | <a class="el" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a></dd></dl> | ||
211 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl> | ||
212 | |||
213 | </div> | ||
214 | </div> | ||
215 | <a id="ga87425065c011cef1ebd6aac75e059dfa" name="ga87425065c011cef1ebd6aac75e059dfa"></a> | ||
216 | <h2 class="memtitle"><span class="permalink"><a href="#ga87425065c011cef1ebd6aac75e059dfa">◆ </a></span>glfwExtensionSupported()</h2> | ||
217 | |||
218 | <div class="memitem"> | ||
219 | <div class="memproto"> | ||
220 | <table class="memname"> | ||
221 | <tr> | ||
222 | <td class="memname">int glfwExtensionSupported </td> | ||
223 | <td>(</td> | ||
224 | <td class="paramtype">const char * </td> | ||
225 | <td class="paramname"><em>extension</em></td><td>)</td> | ||
226 | <td></td> | ||
227 | </tr> | ||
228 | </table> | ||
229 | </div><div class="memdoc"> | ||
230 | <p >This function returns whether the specified <a class="el" href="context_guide.html#context_glext">API extension</a> is supported by the current OpenGL or OpenGL ES context. It searches both for client API extension and context creation API extensions.</p> | ||
231 | <p >A context must be current on the calling thread. Calling this function without a current context will cause a <a class="el" href="group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0">GLFW_NO_CURRENT_CONTEXT</a> error.</p> | ||
232 | <p >As this functions retrieves and searches one or more extension strings each call, it is recommended that you cache its results if it is going to be used frequently. The extension strings will not change during the lifetime of a context, so there is no danger in doing this.</p> | ||
233 | <p >This function does not apply to Vulkan. If you are using Vulkan, see <a class="el" href="group__vulkan.html#ga99ad342d82f4a3421e2864978cb6d1d6">glfwGetRequiredInstanceExtensions</a>, <code>vkEnumerateInstanceExtensionProperties</code> and <code>vkEnumerateDeviceExtensionProperties</code> instead.</p> | ||
234 | <dl class="params"><dt>Parameters</dt><dd> | ||
235 | <table class="params"> | ||
236 | <tr><td class="paramdir">[in]</td><td class="paramname">extension</td><td>The ASCII encoded name of the extension. </td></tr> | ||
237 | </table> | ||
238 | </dd> | ||
239 | </dl> | ||
240 | <dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if the extension is available, or <code>GLFW_FALSE</code> otherwise.</dd></dl> | ||
241 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0">GLFW_NO_CURRENT_CONTEXT</a>, <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
242 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
243 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="context_guide.html#context_glext">OpenGL and OpenGL ES extensions</a> </dd> | ||
244 | <dd> | ||
245 | <a class="el" href="group__context.html#ga35f1837e6f666781842483937612f163">glfwGetProcAddress</a></dd></dl> | ||
246 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl> | ||
247 | |||
248 | </div> | ||
249 | </div> | ||
250 | <a id="ga35f1837e6f666781842483937612f163" name="ga35f1837e6f666781842483937612f163"></a> | ||
251 | <h2 class="memtitle"><span class="permalink"><a href="#ga35f1837e6f666781842483937612f163">◆ </a></span>glfwGetProcAddress()</h2> | ||
252 | |||
253 | <div class="memitem"> | ||
254 | <div class="memproto"> | ||
255 | <table class="memname"> | ||
256 | <tr> | ||
257 | <td class="memname"><a class="el" href="group__context.html#ga3d47c2d2fbe0be9c505d0e04e91a133c">GLFWglproc</a> glfwGetProcAddress </td> | ||
258 | <td>(</td> | ||
259 | <td class="paramtype">const char * </td> | ||
260 | <td class="paramname"><em>procname</em></td><td>)</td> | ||
261 | <td></td> | ||
262 | </tr> | ||
263 | </table> | ||
264 | </div><div class="memdoc"> | ||
265 | <p >This function returns the address of the specified OpenGL or OpenGL ES <a class="el" href="context_guide.html#context_glext">core or extension function</a>, if it is supported by the current context.</p> | ||
266 | <p >A context must be current on the calling thread. Calling this function without a current context will cause a <a class="el" href="group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0">GLFW_NO_CURRENT_CONTEXT</a> error.</p> | ||
267 | <p >This function does not apply to Vulkan. If you are rendering with Vulkan, see <a class="el" href="group__vulkan.html#gadf228fac94c5fd8f12423ec9af9ff1e9">glfwGetInstanceProcAddress</a>, <code>vkGetInstanceProcAddr</code> and <code>vkGetDeviceProcAddr</code> instead.</p> | ||
268 | <dl class="params"><dt>Parameters</dt><dd> | ||
269 | <table class="params"> | ||
270 | <tr><td class="paramdir">[in]</td><td class="paramname">procname</td><td>The ASCII encoded name of the function. </td></tr> | ||
271 | </table> | ||
272 | </dd> | ||
273 | </dl> | ||
274 | <dl class="section return"><dt>Returns</dt><dd>The address of the function, or <code>NULL</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl> | ||
275 | <dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>, <a class="el" href="group__errors.html#gaa8290386e9528ccb9e42a3a4e16fc0d0">GLFW_NO_CURRENT_CONTEXT</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl> | ||
276 | <dl class="section remark"><dt>Remarks</dt><dd>The address of a given function is not guaranteed to be the same between contexts.</dd> | ||
277 | <dd> | ||
278 | This function may return a non-<code>NULL</code> address despite the associated version or extension not being available. Always check the context version or extension string first.</dd></dl> | ||
279 | <dl class="section user"><dt>Pointer lifetime</dt><dd>The returned function pointer is valid until the context is destroyed or the library is terminated.</dd></dl> | ||
280 | <dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl> | ||
281 | <dl class="section see"><dt>See also</dt><dd><a class="el" href="context_guide.html#context_glext">OpenGL and OpenGL ES extensions</a> </dd> | ||
282 | <dd> | ||
283 | <a class="el" href="group__context.html#ga87425065c011cef1ebd6aac75e059dfa">glfwExtensionSupported</a></dd></dl> | ||
284 | <dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl> | ||
285 | |||
286 | </div> | ||
287 | </div> | ||
288 | </div><!-- contents --> | ||
289 | <address class="footer"> | ||
290 | <p> | ||
291 | Last update on Thu Oct 28 2021 for GLFW 3.3.5 | ||
292 | </p> | ||
293 | </address> | ||
294 | </body> | ||
295 | </html> | ||