diff options
Diffstat (limited to 'contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/internals_guide.html')
-rw-r--r-- | contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/internals_guide.html | 125 |
1 files changed, 125 insertions, 0 deletions
diff --git a/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/internals_guide.html b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/internals_guide.html new file mode 100644 index 0000000..2a4d56f --- /dev/null +++ b/contrib/glfw/glfw-3.3.5.bin.WIN64/docs/html/internals_guide.html | |||
@@ -0,0 +1,125 @@ | |||
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: Internal structure</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 | <!-- window showing the filter options --> | ||
49 | <div id="MSearchSelectWindow" | ||
50 | onmouseover="return searchBox.OnSearchSelectShow()" | ||
51 | onmouseout="return searchBox.OnSearchSelectHide()" | ||
52 | onkeydown="return searchBox.OnSearchSelectKey(event)"> | ||
53 | </div> | ||
54 | |||
55 | <!-- iframe showing the search results (closed by default) --> | ||
56 | <div id="MSearchResultsWindow"> | ||
57 | <iframe src="javascript:void(0)" frameborder="0" | ||
58 | name="MSearchResults" id="MSearchResults"> | ||
59 | </iframe> | ||
60 | </div> | ||
61 | |||
62 | </div><!-- top --> | ||
63 | <div><div class="header"> | ||
64 | <div class="headertitle"><div class="title">Internal structure </div></div> | ||
65 | </div><!--header--> | ||
66 | <div class="contents"> | ||
67 | <div class="toc"><h3>Table of Contents</h3> | ||
68 | <ul><li class="level1"><a href="#internals_public">Public interface</a></li> | ||
69 | <li class="level1"><a href="#internals_native">Native interface</a></li> | ||
70 | <li class="level1"><a href="#internals_internal">Internal interface</a></li> | ||
71 | <li class="level1"><a href="#internals_platform">Platform interface</a></li> | ||
72 | <li class="level1"><a href="#internals_event">Event interface</a></li> | ||
73 | <li class="level1"><a href="#internals_static">Static functions</a></li> | ||
74 | <li class="level1"><a href="#internals_config">Configuration macros</a></li> | ||
75 | </ul> | ||
76 | </div> | ||
77 | <div class="textblock"><p >There are several interfaces inside GLFW. Each interface has its own area of responsibility and its own naming conventions.</p> | ||
78 | <h1><a class="anchor" id="internals_public"></a> | ||
79 | Public interface</h1> | ||
80 | <p >The most well-known is the public interface, described in the <a class="el" href="glfw3_8h.html" title="The header of the GLFW 3 API.">glfw3.h</a> header file. This is implemented in source files shared by all platforms and these files contain no platform-specific code. This code usually ends up calling the platform and internal interfaces to do the actual work.</p> | ||
81 | <p >The public interface uses the OpenGL naming conventions except with GLFW and glfw instead of GL and gl. For struct members, where OpenGL sets no precedent, it use headless camel case.</p> | ||
82 | <p >Examples: <code>glfwCreateWindow</code>, <code>GLFWwindow</code>, <code>GLFW_RED_BITS</code></p> | ||
83 | <h1><a class="anchor" id="internals_native"></a> | ||
84 | Native interface</h1> | ||
85 | <p >The <a class="el" href="group__native.html">native interface</a> is a small set of publicly available but platform-specific functions, described in the <a class="el" href="glfw3native_8h.html" title="The header of the native access functions.">glfw3native.h</a> header file and used to gain access to the underlying window, context and (on some platforms) display handles used by the platform interface.</p> | ||
86 | <p >The function names of the native interface are similar to those of the public interface, but embeds the name of the interface that the returned handle is from.</p> | ||
87 | <p >Examples: <code>glfwGetX11Window</code>, <code>glfwGetWGLContext</code></p> | ||
88 | <h1><a class="anchor" id="internals_internal"></a> | ||
89 | Internal interface</h1> | ||
90 | <p >The internal interface consists of utility functions used by all other interfaces. It is shared code implemented in the same shared source files as the public and event interfaces. The internal interface is described in the internal.h header file.</p> | ||
91 | <p >The internal interface is in charge of GLFW's global data, which it stores in a <code>_GLFWlibrary</code> struct named <code>_glfw</code>.</p> | ||
92 | <p >The internal interface uses the same style as the public interface, except all global names have a leading underscore.</p> | ||
93 | <p >Examples: <code>_glfwIsValidContextConfig</code>, <code>_GLFWwindow</code>, <code>_glfw.monitorCount</code></p> | ||
94 | <h1><a class="anchor" id="internals_platform"></a> | ||
95 | Platform interface</h1> | ||
96 | <p >The platform interface implements all platform-specific operations as a service to the public interface. This includes event processing. The platform interface is never directly called by application code and never directly calls application-provided callbacks. It is also prohibited from modifying the platform-independent part of the internal structs. Instead, it calls the event interface when events interesting to GLFW are received.</p> | ||
97 | <p >The platform interface mirrors those parts of the public interface that needs to perform platform-specific operations on some or all platforms. The are also named the same except that the glfw function prefix is replaced by _glfwPlatform.</p> | ||
98 | <p >Examples: <code>_glfwPlatformCreateWindow</code></p> | ||
99 | <p >The platform interface also defines structs that contain platform-specific global and per-object state. Their names mirror those of the internal interface, except that an interface-specific suffix is added.</p> | ||
100 | <p >Examples: <code>_GLFWwindowX11</code>, <code>_GLFWcontextWGL</code></p> | ||
101 | <p >These structs are incorporated as members into the internal interface structs using special macros that name them after the specific interface used. This prevents shared code from accidentally using these members.</p> | ||
102 | <p >Examples: <code>window->win32.handle</code>, <code>_glfw.x11.display</code></p> | ||
103 | <h1><a class="anchor" id="internals_event"></a> | ||
104 | Event interface</h1> | ||
105 | <p >The event interface is implemented in the same shared source files as the public interface and is responsible for delivering the events it receives to the application, either via callbacks, via window state changes or both.</p> | ||
106 | <p >The function names of the event interface use a <code>_glfwInput</code> prefix and the ObjectEvent pattern.</p> | ||
107 | <p >Examples: <code>_glfwInputWindowFocus</code>, <code>_glfwInputCursorPos</code></p> | ||
108 | <h1><a class="anchor" id="internals_static"></a> | ||
109 | Static functions</h1> | ||
110 | <p >Static functions may be used by any interface and have no prefixes or suffixes. These use headless camel case.</p> | ||
111 | <p >Examples: <code>isValidElementForJoystick</code></p> | ||
112 | <h1><a class="anchor" id="internals_config"></a> | ||
113 | Configuration macros</h1> | ||
114 | <p >GLFW uses a number of configuration macros to select at compile time which interfaces and code paths to use. They are defined in the glfw_config.h header file, which is generated from the <code>glfw_config.h.in</code> file by CMake.</p> | ||
115 | <p >Configuration macros the same style as tokens in the public interface, except with a leading underscore.</p> | ||
116 | <p >Examples: <code>_GLFW_WIN32</code>, <code>_GLFW_BUILD_DLL</code> </p> | ||
117 | </div></div><!-- contents --> | ||
118 | </div><!-- PageDoc --> | ||
119 | <address class="footer"> | ||
120 | <p> | ||
121 | Last update on Thu Oct 28 2021 for GLFW 3.3.5 | ||
122 | </p> | ||
123 | </address> | ||
124 | </body> | ||
125 | </html> | ||