ruby_rpg 0.0.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (487) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -0
  3. data/bin/build.bash +13 -0
  4. data/glfw-3.3.9.bin.MACOS/LICENSE.md +23 -0
  5. data/glfw-3.3.9.bin.MACOS/README.md +5 -0
  6. data/glfw-3.3.9.bin.MACOS/docs/html/bc_s.png +0 -0
  7. data/glfw-3.3.9.bin.MACOS/docs/html/bc_sd.png +0 -0
  8. data/glfw-3.3.9.bin.MACOS/docs/html/build_8dox.html +81 -0
  9. data/glfw-3.3.9.bin.MACOS/docs/html/build_guide.html +199 -0
  10. data/glfw-3.3.9.bin.MACOS/docs/html/closed.png +0 -0
  11. data/glfw-3.3.9.bin.MACOS/docs/html/compat_8dox.html +81 -0
  12. data/glfw-3.3.9.bin.MACOS/docs/html/compat_guide.html +153 -0
  13. data/glfw-3.3.9.bin.MACOS/docs/html/compile_8dox.html +81 -0
  14. data/glfw-3.3.9.bin.MACOS/docs/html/compile_guide.html +223 -0
  15. data/glfw-3.3.9.bin.MACOS/docs/html/context_8dox.html +81 -0
  16. data/glfw-3.3.9.bin.MACOS/docs/html/context_guide.html +259 -0
  17. data/glfw-3.3.9.bin.MACOS/docs/html/deprecated.html +88 -0
  18. data/glfw-3.3.9.bin.MACOS/docs/html/dir_08423ce7729c4554356a7de7171ba263.html +85 -0
  19. data/glfw-3.3.9.bin.MACOS/docs/html/dir_2dcebcdf14b42e92a6ed85c61bda6b9d.html +93 -0
  20. data/glfw-3.3.9.bin.MACOS/docs/html/dir_62ce056722ee97c199075aa1d6eca309.html +95 -0
  21. data/glfw-3.3.9.bin.MACOS/docs/html/dir_dddf4cf62655095a666cf715de3a31a2.html +91 -0
  22. data/glfw-3.3.9.bin.MACOS/docs/html/doc.svg +12 -0
  23. data/glfw-3.3.9.bin.MACOS/docs/html/docd.svg +12 -0
  24. data/glfw-3.3.9.bin.MACOS/docs/html/doxygen.css +1685 -0
  25. data/glfw-3.3.9.bin.MACOS/docs/html/doxygen.svg +28 -0
  26. data/glfw-3.3.9.bin.MACOS/docs/html/dynsections.js +192 -0
  27. data/glfw-3.3.9.bin.MACOS/docs/html/extra.css +1 -0
  28. data/glfw-3.3.9.bin.MACOS/docs/html/files.html +91 -0
  29. data/glfw-3.3.9.bin.MACOS/docs/html/folderclosed.svg +11 -0
  30. data/glfw-3.3.9.bin.MACOS/docs/html/folderclosedd.svg +11 -0
  31. data/glfw-3.3.9.bin.MACOS/docs/html/folderopen.svg +17 -0
  32. data/glfw-3.3.9.bin.MACOS/docs/html/folderopend.svg +12 -0
  33. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3_8h.html +1661 -0
  34. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3_8h_source.html +1175 -0
  35. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3native_8h.html +167 -0
  36. data/glfw-3.3.9.bin.MACOS/docs/html/glfw3native_8h_source.html +303 -0
  37. data/glfw-3.3.9.bin.MACOS/docs/html/group__buttons.html +282 -0
  38. data/glfw-3.3.9.bin.MACOS/docs/html/group__context.html +304 -0
  39. data/glfw-3.3.9.bin.MACOS/docs/html/group__errors.html +304 -0
  40. data/glfw-3.3.9.bin.MACOS/docs/html/group__gamepad__axes.html +202 -0
  41. data/glfw-3.3.9.bin.MACOS/docs/html/group__gamepad__buttons.html +410 -0
  42. data/glfw-3.3.9.bin.MACOS/docs/html/group__hat__state.html +234 -0
  43. data/glfw-3.3.9.bin.MACOS/docs/html/group__init.html +570 -0
  44. data/glfw-3.3.9.bin.MACOS/docs/html/group__input.html +2255 -0
  45. data/glfw-3.3.9.bin.MACOS/docs/html/group__joysticks.html +362 -0
  46. data/glfw-3.3.9.bin.MACOS/docs/html/group__keys.html +2034 -0
  47. data/glfw-3.3.9.bin.MACOS/docs/html/group__mods.html +198 -0
  48. data/glfw-3.3.9.bin.MACOS/docs/html/group__monitor.html +848 -0
  49. data/glfw-3.3.9.bin.MACOS/docs/html/group__native.html +812 -0
  50. data/glfw-3.3.9.bin.MACOS/docs/html/group__shapes.html +198 -0
  51. data/glfw-3.3.9.bin.MACOS/docs/html/group__vulkan.html +359 -0
  52. data/glfw-3.3.9.bin.MACOS/docs/html/group__window.html +3434 -0
  53. data/glfw-3.3.9.bin.MACOS/docs/html/index.html +100 -0
  54. data/glfw-3.3.9.bin.MACOS/docs/html/input_8dox.html +81 -0
  55. data/glfw-3.3.9.bin.MACOS/docs/html/input_guide.html +570 -0
  56. data/glfw-3.3.9.bin.MACOS/docs/html/internal_8dox.html +81 -0
  57. data/glfw-3.3.9.bin.MACOS/docs/html/internals_guide.html +132 -0
  58. data/glfw-3.3.9.bin.MACOS/docs/html/intro_8dox.html +81 -0
  59. data/glfw-3.3.9.bin.MACOS/docs/html/intro_guide.html +351 -0
  60. data/glfw-3.3.9.bin.MACOS/docs/html/jquery.js +34 -0
  61. data/glfw-3.3.9.bin.MACOS/docs/html/main_8dox.html +81 -0
  62. data/glfw-3.3.9.bin.MACOS/docs/html/menu.js +136 -0
  63. data/glfw-3.3.9.bin.MACOS/docs/html/menudata.js +29 -0
  64. data/glfw-3.3.9.bin.MACOS/docs/html/minus.svg +8 -0
  65. data/glfw-3.3.9.bin.MACOS/docs/html/minusd.svg +8 -0
  66. data/glfw-3.3.9.bin.MACOS/docs/html/monitor_8dox.html +81 -0
  67. data/glfw-3.3.9.bin.MACOS/docs/html/monitor_guide.html +229 -0
  68. data/glfw-3.3.9.bin.MACOS/docs/html/moving_8dox.html +81 -0
  69. data/glfw-3.3.9.bin.MACOS/docs/html/moving_guide.html +374 -0
  70. data/glfw-3.3.9.bin.MACOS/docs/html/nav_f.png +0 -0
  71. data/glfw-3.3.9.bin.MACOS/docs/html/nav_fd.png +0 -0
  72. data/glfw-3.3.9.bin.MACOS/docs/html/nav_g.png +0 -0
  73. data/glfw-3.3.9.bin.MACOS/docs/html/nav_h.png +0 -0
  74. data/glfw-3.3.9.bin.MACOS/docs/html/nav_hd.png +0 -0
  75. data/glfw-3.3.9.bin.MACOS/docs/html/news.html +634 -0
  76. data/glfw-3.3.9.bin.MACOS/docs/html/news_8dox.html +81 -0
  77. data/glfw-3.3.9.bin.MACOS/docs/html/open.png +0 -0
  78. data/glfw-3.3.9.bin.MACOS/docs/html/pages.html +99 -0
  79. data/glfw-3.3.9.bin.MACOS/docs/html/plus.svg +9 -0
  80. data/glfw-3.3.9.bin.MACOS/docs/html/plusd.svg +9 -0
  81. data/glfw-3.3.9.bin.MACOS/docs/html/quick_8dox.html +81 -0
  82. data/glfw-3.3.9.bin.MACOS/docs/html/quick_guide.html +397 -0
  83. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_0.js +5 -0
  84. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1.js +4 -0
  85. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_10.js +65 -0
  86. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_11.js +26 -0
  87. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_12.js +44 -0
  88. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_13.js +34 -0
  89. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_14.js +12 -0
  90. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_15.js +52 -0
  91. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_16.js +69 -0
  92. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_17.js +51 -0
  93. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_18.js +14 -0
  94. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_19.js +36 -0
  95. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1a.js +98 -0
  96. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1b.js +12 -0
  97. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_2.js +6 -0
  98. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_3.js +9 -0
  99. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_4.js +57 -0
  100. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_5.js +22 -0
  101. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_6.js +103 -0
  102. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_7.js +23 -0
  103. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_8.js +35 -0
  104. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_9.js +63 -0
  105. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_a.js +505 -0
  106. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_b.js +24 -0
  107. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_c.js +50 -0
  108. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_d.js +17 -0
  109. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_e.js +12 -0
  110. data/glfw-3.3.9.bin.MACOS/docs/html/search/all_f.js +35 -0
  111. data/glfw-3.3.9.bin.MACOS/docs/html/search/classes_0.js +7 -0
  112. data/glfw-3.3.9.bin.MACOS/docs/html/search/close.svg +18 -0
  113. data/glfw-3.3.9.bin.MACOS/docs/html/search/defines_0.js +34 -0
  114. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_0.js +4 -0
  115. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_1.js +6 -0
  116. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_2.js +5 -0
  117. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_3.js +6 -0
  118. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_4.js +6 -0
  119. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_5.js +4 -0
  120. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_6.js +4 -0
  121. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_7.js +4 -0
  122. data/glfw-3.3.9.bin.MACOS/docs/html/search/files_8.js +4 -0
  123. data/glfw-3.3.9.bin.MACOS/docs/html/search/functions_0.js +146 -0
  124. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_0.js +6 -0
  125. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_1.js +4 -0
  126. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_10.js +4 -0
  127. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_2.js +6 -0
  128. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_3.js +5 -0
  129. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_4.js +4 -0
  130. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_5.js +5 -0
  131. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_6.js +4 -0
  132. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_7.js +5 -0
  133. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_8.js +5 -0
  134. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_9.js +6 -0
  135. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_a.js +6 -0
  136. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_b.js +4 -0
  137. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_c.js +4 -0
  138. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_d.js +7 -0
  139. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_e.js +4 -0
  140. data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_f.js +5 -0
  141. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag.svg +24 -0
  142. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_d.svg +24 -0
  143. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_sel.svg +31 -0
  144. data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_seld.svg +31 -0
  145. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_0.js +4 -0
  146. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_1.js +4 -0
  147. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_10.js +4 -0
  148. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_2.js +5 -0
  149. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_3.js +4 -0
  150. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_4.js +6 -0
  151. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_5.js +4 -0
  152. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_6.js +4 -0
  153. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_7.js +7 -0
  154. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_8.js +6 -0
  155. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_9.js +4 -0
  156. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_a.js +5 -0
  157. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_b.js +5 -0
  158. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_c.js +4 -0
  159. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_d.js +6 -0
  160. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_e.js +6 -0
  161. data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_f.js +4 -0
  162. data/glfw-3.3.9.bin.MACOS/docs/html/search/search.css +291 -0
  163. data/glfw-3.3.9.bin.MACOS/docs/html/search/search.js +840 -0
  164. data/glfw-3.3.9.bin.MACOS/docs/html/search/searchdata.js +39 -0
  165. data/glfw-3.3.9.bin.MACOS/docs/html/search/typedefs_0.js +32 -0
  166. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_0.js +4 -0
  167. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_1.js +6 -0
  168. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_2.js +5 -0
  169. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_3.js +4 -0
  170. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_4.js +4 -0
  171. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_5.js +6 -0
  172. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_6.js +4 -0
  173. data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_7.js +4 -0
  174. data/glfw-3.3.9.bin.MACOS/docs/html/spaces.svg +877 -0
  175. data/glfw-3.3.9.bin.MACOS/docs/html/splitbar.png +0 -0
  176. data/glfw-3.3.9.bin.MACOS/docs/html/splitbard.png +0 -0
  177. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wgamepadstate.html +134 -0
  178. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wgammaramp.html +170 -0
  179. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wimage.html +151 -0
  180. data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wvidmode.html +204 -0
  181. data/glfw-3.3.9.bin.MACOS/docs/html/sync_off.png +0 -0
  182. data/glfw-3.3.9.bin.MACOS/docs/html/sync_on.png +0 -0
  183. data/glfw-3.3.9.bin.MACOS/docs/html/tab_a.png +0 -0
  184. data/glfw-3.3.9.bin.MACOS/docs/html/tab_ad.png +0 -0
  185. data/glfw-3.3.9.bin.MACOS/docs/html/tab_b.png +0 -0
  186. data/glfw-3.3.9.bin.MACOS/docs/html/tab_bd.png +0 -0
  187. data/glfw-3.3.9.bin.MACOS/docs/html/tab_h.png +0 -0
  188. data/glfw-3.3.9.bin.MACOS/docs/html/tab_hd.png +0 -0
  189. data/glfw-3.3.9.bin.MACOS/docs/html/tab_s.png +0 -0
  190. data/glfw-3.3.9.bin.MACOS/docs/html/tab_sd.png +0 -0
  191. data/glfw-3.3.9.bin.MACOS/docs/html/tabs.css +1 -0
  192. data/glfw-3.3.9.bin.MACOS/docs/html/vulkan_8dox.html +81 -0
  193. data/glfw-3.3.9.bin.MACOS/docs/html/vulkan_guide.html +196 -0
  194. data/glfw-3.3.9.bin.MACOS/docs/html/window_8dox.html +81 -0
  195. data/glfw-3.3.9.bin.MACOS/docs/html/window_guide.html +763 -0
  196. data/glfw-3.3.9.bin.MACOS/include/GLFW/glfw3.h +5932 -0
  197. data/glfw-3.3.9.bin.MACOS/include/GLFW/glfw3native.h +634 -0
  198. data/glfw-3.3.9.bin.MACOS/lib-arm64/libglfw.3.dylib +0 -0
  199. data/glfw-3.3.9.bin.MACOS/lib-arm64/libglfw3.a +0 -0
  200. data/glfw-3.3.9.bin.MACOS/lib-universal/libglfw.3.dylib +0 -0
  201. data/glfw-3.3.9.bin.MACOS/lib-universal/libglfw3.a +0 -0
  202. data/glfw-3.3.9.bin.MACOS/lib-x86_64/libglfw.3.dylib +0 -0
  203. data/glfw-3.3.9.bin.MACOS/lib-x86_64/libglfw3.a +0 -0
  204. data/glfw-3.4.bin.WIN64/LICENSE.md +23 -0
  205. data/glfw-3.4.bin.WIN64/README.md +70 -0
  206. data/glfw-3.4.bin.WIN64/docs/html/bc_s.png +0 -0
  207. data/glfw-3.4.bin.WIN64/docs/html/bc_sd.png +0 -0
  208. data/glfw-3.4.bin.WIN64/docs/html/build_8md.html +81 -0
  209. data/glfw-3.4.bin.WIN64/docs/html/build_guide.html +217 -0
  210. data/glfw-3.4.bin.WIN64/docs/html/closed.png +0 -0
  211. data/glfw-3.4.bin.WIN64/docs/html/compat_8md.html +81 -0
  212. data/glfw-3.4.bin.WIN64/docs/html/compat_guide.html +156 -0
  213. data/glfw-3.4.bin.WIN64/docs/html/compile_8md.html +81 -0
  214. data/glfw-3.4.bin.WIN64/docs/html/compile_guide.html +219 -0
  215. data/glfw-3.4.bin.WIN64/docs/html/context_8md.html +81 -0
  216. data/glfw-3.4.bin.WIN64/docs/html/context_guide.html +258 -0
  217. data/glfw-3.4.bin.WIN64/docs/html/deprecated.html +88 -0
  218. data/glfw-3.4.bin.WIN64/docs/html/dir_13577e2d8b9423099662de029791bd7d.html +93 -0
  219. data/glfw-3.4.bin.WIN64/docs/html/dir_7f92719a7fe62e5b064f87d7a3c220b1.html +95 -0
  220. data/glfw-3.4.bin.WIN64/docs/html/dir_a788ef6c2b1e5b367804e0b6ccfd6f11.html +85 -0
  221. data/glfw-3.4.bin.WIN64/docs/html/dir_b11153cd0f4fd04a7564cc166f482635.html +91 -0
  222. data/glfw-3.4.bin.WIN64/docs/html/doc.svg +12 -0
  223. data/glfw-3.4.bin.WIN64/docs/html/docd.svg +12 -0
  224. data/glfw-3.4.bin.WIN64/docs/html/doxygen.css +1685 -0
  225. data/glfw-3.4.bin.WIN64/docs/html/doxygen.svg +28 -0
  226. data/glfw-3.4.bin.WIN64/docs/html/dynsections.js +192 -0
  227. data/glfw-3.4.bin.WIN64/docs/html/extra.css +2 -0
  228. data/glfw-3.4.bin.WIN64/docs/html/files.html +91 -0
  229. data/glfw-3.4.bin.WIN64/docs/html/folderclosed.svg +11 -0
  230. data/glfw-3.4.bin.WIN64/docs/html/folderclosedd.svg +11 -0
  231. data/glfw-3.4.bin.WIN64/docs/html/folderopen.svg +17 -0
  232. data/glfw-3.4.bin.WIN64/docs/html/folderopend.svg +12 -0
  233. data/glfw-3.4.bin.WIN64/docs/html/glfw3_8h.html +1910 -0
  234. data/glfw-3.4.bin.WIN64/docs/html/glfw3_8h_source.html +1260 -0
  235. data/glfw-3.4.bin.WIN64/docs/html/glfw3native_8h.html +170 -0
  236. data/glfw-3.4.bin.WIN64/docs/html/glfw3native_8h_source.html +306 -0
  237. data/glfw-3.4.bin.WIN64/docs/html/group__buttons.html +282 -0
  238. data/glfw-3.4.bin.WIN64/docs/html/group__context.html +304 -0
  239. data/glfw-3.4.bin.WIN64/docs/html/group__errors.html +384 -0
  240. data/glfw-3.4.bin.WIN64/docs/html/group__gamepad__axes.html +202 -0
  241. data/glfw-3.4.bin.WIN64/docs/html/group__gamepad__buttons.html +410 -0
  242. data/glfw-3.4.bin.WIN64/docs/html/group__hat__state.html +234 -0
  243. data/glfw-3.4.bin.WIN64/docs/html/group__init.html +1015 -0
  244. data/glfw-3.4.bin.WIN64/docs/html/group__input.html +2285 -0
  245. data/glfw-3.4.bin.WIN64/docs/html/group__joysticks.html +362 -0
  246. data/glfw-3.4.bin.WIN64/docs/html/group__keys.html +2034 -0
  247. data/glfw-3.4.bin.WIN64/docs/html/group__mods.html +198 -0
  248. data/glfw-3.4.bin.WIN64/docs/html/group__monitor.html +849 -0
  249. data/glfw-3.4.bin.WIN64/docs/html/group__native.html +837 -0
  250. data/glfw-3.4.bin.WIN64/docs/html/group__shapes.html +337 -0
  251. data/glfw-3.4.bin.WIN64/docs/html/group__vulkan.html +361 -0
  252. data/glfw-3.4.bin.WIN64/docs/html/group__window.html +3608 -0
  253. data/glfw-3.4.bin.WIN64/docs/html/index.html +100 -0
  254. data/glfw-3.4.bin.WIN64/docs/html/input_8md.html +81 -0
  255. data/glfw-3.4.bin.WIN64/docs/html/input_guide.html +576 -0
  256. data/glfw-3.4.bin.WIN64/docs/html/internal_8md.html +81 -0
  257. data/glfw-3.4.bin.WIN64/docs/html/internals_guide.html +135 -0
  258. data/glfw-3.4.bin.WIN64/docs/html/intro_8md.html +81 -0
  259. data/glfw-3.4.bin.WIN64/docs/html/intro_guide.html +429 -0
  260. data/glfw-3.4.bin.WIN64/docs/html/jquery.js +34 -0
  261. data/glfw-3.4.bin.WIN64/docs/html/main_8md.html +81 -0
  262. data/glfw-3.4.bin.WIN64/docs/html/menu.js +136 -0
  263. data/glfw-3.4.bin.WIN64/docs/html/menudata.js +30 -0
  264. data/glfw-3.4.bin.WIN64/docs/html/minus.svg +8 -0
  265. data/glfw-3.4.bin.WIN64/docs/html/minusd.svg +8 -0
  266. data/glfw-3.4.bin.WIN64/docs/html/monitor_8md.html +81 -0
  267. data/glfw-3.4.bin.WIN64/docs/html/monitor_guide.html +228 -0
  268. data/glfw-3.4.bin.WIN64/docs/html/moving_8md.html +81 -0
  269. data/glfw-3.4.bin.WIN64/docs/html/moving_guide.html +360 -0
  270. data/glfw-3.4.bin.WIN64/docs/html/nav_f.png +0 -0
  271. data/glfw-3.4.bin.WIN64/docs/html/nav_fd.png +0 -0
  272. data/glfw-3.4.bin.WIN64/docs/html/nav_g.png +0 -0
  273. data/glfw-3.4.bin.WIN64/docs/html/nav_h.png +0 -0
  274. data/glfw-3.4.bin.WIN64/docs/html/nav_hd.png +0 -0
  275. data/glfw-3.4.bin.WIN64/docs/html/news.html +336 -0
  276. data/glfw-3.4.bin.WIN64/docs/html/news_8md.html +81 -0
  277. data/glfw-3.4.bin.WIN64/docs/html/open.png +0 -0
  278. data/glfw-3.4.bin.WIN64/docs/html/pages.html +99 -0
  279. data/glfw-3.4.bin.WIN64/docs/html/plus.svg +9 -0
  280. data/glfw-3.4.bin.WIN64/docs/html/plusd.svg +9 -0
  281. data/glfw-3.4.bin.WIN64/docs/html/quick_8md.html +81 -0
  282. data/glfw-3.4.bin.WIN64/docs/html/quick_guide.html +406 -0
  283. data/glfw-3.4.bin.WIN64/docs/html/search/all_0.js +4 -0
  284. data/glfw-3.4.bin.WIN64/docs/html/search/all_1.js +4 -0
  285. data/glfw-3.4.bin.WIN64/docs/html/search/all_10.js +13 -0
  286. data/glfw-3.4.bin.WIN64/docs/html/search/all_11.js +11 -0
  287. data/glfw-3.4.bin.WIN64/docs/html/search/all_12.js +26 -0
  288. data/glfw-3.4.bin.WIN64/docs/html/search/all_13.js +51 -0
  289. data/glfw-3.4.bin.WIN64/docs/html/search/all_14.js +22 -0
  290. data/glfw-3.4.bin.WIN64/docs/html/search/all_15.js +35 -0
  291. data/glfw-3.4.bin.WIN64/docs/html/search/all_16.js +29 -0
  292. data/glfw-3.4.bin.WIN64/docs/html/search/all_17.js +8 -0
  293. data/glfw-3.4.bin.WIN64/docs/html/search/all_18.js +44 -0
  294. data/glfw-3.4.bin.WIN64/docs/html/search/all_19.js +60 -0
  295. data/glfw-3.4.bin.WIN64/docs/html/search/all_1a.js +39 -0
  296. data/glfw-3.4.bin.WIN64/docs/html/search/all_1b.js +8 -0
  297. data/glfw-3.4.bin.WIN64/docs/html/search/all_1c.js +32 -0
  298. data/glfw-3.4.bin.WIN64/docs/html/search/all_1d.js +84 -0
  299. data/glfw-3.4.bin.WIN64/docs/html/search/all_1e.js +13 -0
  300. data/glfw-3.4.bin.WIN64/docs/html/search/all_1f.js +4 -0
  301. data/glfw-3.4.bin.WIN64/docs/html/search/all_2.js +5 -0
  302. data/glfw-3.4.bin.WIN64/docs/html/search/all_3.js +4 -0
  303. data/glfw-3.4.bin.WIN64/docs/html/search/all_4.js +4 -0
  304. data/glfw-3.4.bin.WIN64/docs/html/search/all_5.js +4 -0
  305. data/glfw-3.4.bin.WIN64/docs/html/search/all_6.js +4 -0
  306. data/glfw-3.4.bin.WIN64/docs/html/search/all_7.js +58 -0
  307. data/glfw-3.4.bin.WIN64/docs/html/search/all_8.js +21 -0
  308. data/glfw-3.4.bin.WIN64/docs/html/search/all_9.js +82 -0
  309. data/glfw-3.4.bin.WIN64/docs/html/search/all_a.js +20 -0
  310. data/glfw-3.4.bin.WIN64/docs/html/search/all_b.js +26 -0
  311. data/glfw-3.4.bin.WIN64/docs/html/search/all_c.js +35 -0
  312. data/glfw-3.4.bin.WIN64/docs/html/search/all_d.js +555 -0
  313. data/glfw-3.4.bin.WIN64/docs/html/search/all_e.js +23 -0
  314. data/glfw-3.4.bin.WIN64/docs/html/search/all_f.js +40 -0
  315. data/glfw-3.4.bin.WIN64/docs/html/search/classes_0.js +8 -0
  316. data/glfw-3.4.bin.WIN64/docs/html/search/close.svg +18 -0
  317. data/glfw-3.4.bin.WIN64/docs/html/search/defines_0.js +43 -0
  318. data/glfw-3.4.bin.WIN64/docs/html/search/files_0.js +4 -0
  319. data/glfw-3.4.bin.WIN64/docs/html/search/files_1.js +6 -0
  320. data/glfw-3.4.bin.WIN64/docs/html/search/files_2.js +5 -0
  321. data/glfw-3.4.bin.WIN64/docs/html/search/files_3.js +6 -0
  322. data/glfw-3.4.bin.WIN64/docs/html/search/files_4.js +6 -0
  323. data/glfw-3.4.bin.WIN64/docs/html/search/files_5.js +4 -0
  324. data/glfw-3.4.bin.WIN64/docs/html/search/files_6.js +4 -0
  325. data/glfw-3.4.bin.WIN64/docs/html/search/files_7.js +4 -0
  326. data/glfw-3.4.bin.WIN64/docs/html/search/files_8.js +4 -0
  327. data/glfw-3.4.bin.WIN64/docs/html/search/functions_0.js +152 -0
  328. data/glfw-3.4.bin.WIN64/docs/html/search/groups_0.js +6 -0
  329. data/glfw-3.4.bin.WIN64/docs/html/search/groups_1.js +4 -0
  330. data/glfw-3.4.bin.WIN64/docs/html/search/groups_10.js +4 -0
  331. data/glfw-3.4.bin.WIN64/docs/html/search/groups_2.js +6 -0
  332. data/glfw-3.4.bin.WIN64/docs/html/search/groups_3.js +5 -0
  333. data/glfw-3.4.bin.WIN64/docs/html/search/groups_4.js +4 -0
  334. data/glfw-3.4.bin.WIN64/docs/html/search/groups_5.js +5 -0
  335. data/glfw-3.4.bin.WIN64/docs/html/search/groups_6.js +4 -0
  336. data/glfw-3.4.bin.WIN64/docs/html/search/groups_7.js +5 -0
  337. data/glfw-3.4.bin.WIN64/docs/html/search/groups_8.js +5 -0
  338. data/glfw-3.4.bin.WIN64/docs/html/search/groups_9.js +6 -0
  339. data/glfw-3.4.bin.WIN64/docs/html/search/groups_a.js +6 -0
  340. data/glfw-3.4.bin.WIN64/docs/html/search/groups_b.js +4 -0
  341. data/glfw-3.4.bin.WIN64/docs/html/search/groups_c.js +4 -0
  342. data/glfw-3.4.bin.WIN64/docs/html/search/groups_d.js +7 -0
  343. data/glfw-3.4.bin.WIN64/docs/html/search/groups_e.js +4 -0
  344. data/glfw-3.4.bin.WIN64/docs/html/search/groups_f.js +5 -0
  345. data/glfw-3.4.bin.WIN64/docs/html/search/mag.svg +24 -0
  346. data/glfw-3.4.bin.WIN64/docs/html/search/mag_d.svg +24 -0
  347. data/glfw-3.4.bin.WIN64/docs/html/search/mag_sel.svg +31 -0
  348. data/glfw-3.4.bin.WIN64/docs/html/search/mag_seld.svg +31 -0
  349. data/glfw-3.4.bin.WIN64/docs/html/search/pages_0.js +4 -0
  350. data/glfw-3.4.bin.WIN64/docs/html/search/pages_1.js +5 -0
  351. data/glfw-3.4.bin.WIN64/docs/html/search/pages_10.js +5 -0
  352. data/glfw-3.4.bin.WIN64/docs/html/search/pages_11.js +4 -0
  353. data/glfw-3.4.bin.WIN64/docs/html/search/pages_2.js +4 -0
  354. data/glfw-3.4.bin.WIN64/docs/html/search/pages_3.js +5 -0
  355. data/glfw-3.4.bin.WIN64/docs/html/search/pages_4.js +4 -0
  356. data/glfw-3.4.bin.WIN64/docs/html/search/pages_5.js +6 -0
  357. data/glfw-3.4.bin.WIN64/docs/html/search/pages_6.js +4 -0
  358. data/glfw-3.4.bin.WIN64/docs/html/search/pages_7.js +5 -0
  359. data/glfw-3.4.bin.WIN64/docs/html/search/pages_8.js +7 -0
  360. data/glfw-3.4.bin.WIN64/docs/html/search/pages_9.js +7 -0
  361. data/glfw-3.4.bin.WIN64/docs/html/search/pages_a.js +4 -0
  362. data/glfw-3.4.bin.WIN64/docs/html/search/pages_b.js +5 -0
  363. data/glfw-3.4.bin.WIN64/docs/html/search/pages_c.js +4 -0
  364. data/glfw-3.4.bin.WIN64/docs/html/search/pages_d.js +4 -0
  365. data/glfw-3.4.bin.WIN64/docs/html/search/pages_e.js +6 -0
  366. data/glfw-3.4.bin.WIN64/docs/html/search/pages_f.js +6 -0
  367. data/glfw-3.4.bin.WIN64/docs/html/search/search.css +291 -0
  368. data/glfw-3.4.bin.WIN64/docs/html/search/search.js +840 -0
  369. data/glfw-3.4.bin.WIN64/docs/html/search/searchdata.js +39 -0
  370. data/glfw-3.4.bin.WIN64/docs/html/search/typedefs_0.js +36 -0
  371. data/glfw-3.4.bin.WIN64/docs/html/search/variables_0.js +5 -0
  372. data/glfw-3.4.bin.WIN64/docs/html/search/variables_1.js +6 -0
  373. data/glfw-3.4.bin.WIN64/docs/html/search/variables_2.js +4 -0
  374. data/glfw-3.4.bin.WIN64/docs/html/search/variables_3.js +5 -0
  375. data/glfw-3.4.bin.WIN64/docs/html/search/variables_4.js +4 -0
  376. data/glfw-3.4.bin.WIN64/docs/html/search/variables_5.js +4 -0
  377. data/glfw-3.4.bin.WIN64/docs/html/search/variables_6.js +7 -0
  378. data/glfw-3.4.bin.WIN64/docs/html/search/variables_7.js +4 -0
  379. data/glfw-3.4.bin.WIN64/docs/html/search/variables_8.js +4 -0
  380. data/glfw-3.4.bin.WIN64/docs/html/search/variables_9.js +4 -0
  381. data/glfw-3.4.bin.WIN64/docs/html/spaces.svg +877 -0
  382. data/glfw-3.4.bin.WIN64/docs/html/splitbar.png +0 -0
  383. data/glfw-3.4.bin.WIN64/docs/html/splitbard.png +0 -0
  384. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wallocator.html +168 -0
  385. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wgamepadstate.html +134 -0
  386. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wgammaramp.html +170 -0
  387. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wimage.html +151 -0
  388. data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wvidmode.html +204 -0
  389. data/glfw-3.4.bin.WIN64/docs/html/sync_off.png +0 -0
  390. data/glfw-3.4.bin.WIN64/docs/html/sync_on.png +0 -0
  391. data/glfw-3.4.bin.WIN64/docs/html/tab_a.png +0 -0
  392. data/glfw-3.4.bin.WIN64/docs/html/tab_ad.png +0 -0
  393. data/glfw-3.4.bin.WIN64/docs/html/tab_b.png +0 -0
  394. data/glfw-3.4.bin.WIN64/docs/html/tab_bd.png +0 -0
  395. data/glfw-3.4.bin.WIN64/docs/html/tab_h.png +0 -0
  396. data/glfw-3.4.bin.WIN64/docs/html/tab_hd.png +0 -0
  397. data/glfw-3.4.bin.WIN64/docs/html/tab_s.png +0 -0
  398. data/glfw-3.4.bin.WIN64/docs/html/tab_sd.png +0 -0
  399. data/glfw-3.4.bin.WIN64/docs/html/tabs.css +1 -0
  400. data/glfw-3.4.bin.WIN64/docs/html/topics.html +101 -0
  401. data/glfw-3.4.bin.WIN64/docs/html/vulkan_8md.html +81 -0
  402. data/glfw-3.4.bin.WIN64/docs/html/vulkan_guide.html +206 -0
  403. data/glfw-3.4.bin.WIN64/docs/html/window_8md.html +81 -0
  404. data/glfw-3.4.bin.WIN64/docs/html/window_guide.html +806 -0
  405. data/glfw-3.4.bin.WIN64/include/GLFW/glfw3.h +6547 -0
  406. data/glfw-3.4.bin.WIN64/include/GLFW/glfw3native.h +663 -0
  407. data/glfw-3.4.bin.WIN64/lib-mingw-w64/glfw3.dll +0 -0
  408. data/glfw-3.4.bin.WIN64/lib-mingw-w64/libglfw3.a +0 -0
  409. data/glfw-3.4.bin.WIN64/lib-mingw-w64/libglfw3dll.a +0 -0
  410. data/glfw-3.4.bin.WIN64/lib-static-ucrt/glfw3.dll +0 -0
  411. data/glfw-3.4.bin.WIN64/lib-static-ucrt/glfw3dll.lib +0 -0
  412. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3.dll +0 -0
  413. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3.lib +0 -0
  414. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3_mt.lib +0 -0
  415. data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3dll.lib +0 -0
  416. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3.dll +0 -0
  417. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3.lib +0 -0
  418. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3_mt.lib +0 -0
  419. data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3dll.lib +0 -0
  420. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3.dll +0 -0
  421. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3.lib +0 -0
  422. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3_mt.lib +0 -0
  423. data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3dll.lib +0 -0
  424. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3.dll +0 -0
  425. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3.lib +0 -0
  426. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3_mt.lib +0 -0
  427. data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3dll.lib +0 -0
  428. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3.dll +0 -0
  429. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3.lib +0 -0
  430. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3_mt.lib +0 -0
  431. data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3dll.lib +0 -0
  432. data/lib/engine/autoloader.rb +11 -0
  433. data/lib/engine/camera.rb +13 -0
  434. data/lib/engine/component.rb +63 -0
  435. data/lib/engine/components/audio_source.rb +41 -0
  436. data/lib/engine/components/direction_light.rb +23 -0
  437. data/lib/engine/components/font_renderer.rb +134 -0
  438. data/lib/engine/components/mesh_renderer.rb +31 -0
  439. data/lib/engine/components/orthographic_camera.rb +54 -0
  440. data/lib/engine/components/perspective_camera.rb +53 -0
  441. data/lib/engine/components/point_light.rb +24 -0
  442. data/lib/engine/components/sprite_renderer.rb +141 -0
  443. data/lib/engine/components/ui_font_renderer.rb +140 -0
  444. data/lib/engine/components/ui_sprite_renderer.rb +101 -0
  445. data/lib/engine/cursor.rb +43 -0
  446. data/lib/engine/debugging.rb +41 -0
  447. data/lib/engine/engine.rb +139 -0
  448. data/lib/engine/font.rb +74 -0
  449. data/lib/engine/game_object.rb +218 -0
  450. data/lib/engine/importers/font_importer.rb +69 -0
  451. data/lib/engine/importers/obj_file.rb +244 -0
  452. data/lib/engine/importers/obj_importer.rb +33 -0
  453. data/lib/engine/input.rb +61 -0
  454. data/lib/engine/material.rb +79 -0
  455. data/lib/engine/mesh.rb +43 -0
  456. data/lib/engine/path.rb +92 -0
  457. data/lib/engine/physics/collision.rb +12 -0
  458. data/lib/engine/physics/components/cube_collider.rb +6 -0
  459. data/lib/engine/physics/components/rigidbody.rb +103 -0
  460. data/lib/engine/physics/components/sphere_collider.rb +93 -0
  461. data/lib/engine/physics/physics_resolver.rb +37 -0
  462. data/lib/engine/polygon_mesh.rb +45 -0
  463. data/lib/engine/quaternion.rb +228 -0
  464. data/lib/engine/rendering/instance_renderer.rb +153 -0
  465. data/lib/engine/rendering/render_pipeline.rb +35 -0
  466. data/lib/engine/screenshoter.rb +34 -0
  467. data/lib/engine/shader.rb +91 -0
  468. data/lib/engine/shaders/colour_frag.glsl +9 -0
  469. data/lib/engine/shaders/colour_vertex.glsl +14 -0
  470. data/lib/engine/shaders/mesh_frag.glsl +102 -0
  471. data/lib/engine/shaders/mesh_vertex.glsl +25 -0
  472. data/lib/engine/shaders/skybox_frag.glsl +12 -0
  473. data/lib/engine/shaders/skybox_vert.glsl +14 -0
  474. data/lib/engine/shaders/sprite_frag.glsl +17 -0
  475. data/lib/engine/shaders/sprite_vertex.glsl +16 -0
  476. data/lib/engine/shaders/text_frag.glsl +15 -0
  477. data/lib/engine/shaders/text_vertex.glsl +31 -0
  478. data/lib/engine/shaders/ui_sprite_frag.glsl +15 -0
  479. data/lib/engine/shaders/ui_sprite_vertex.glsl +16 -0
  480. data/lib/engine/shaders/vertex_lit_frag.glsl +89 -0
  481. data/lib/engine/shaders/vertex_lit_vertex.glsl +28 -0
  482. data/lib/engine/tangent_calculator.rb +42 -0
  483. data/lib/engine/texture.rb +53 -0
  484. data/lib/engine/video_mode.rb +37 -0
  485. data/lib/engine/window.rb +126 -0
  486. data/lib/ruby_rpg.rb +53 -0
  487. metadata +500 -2
@@ -0,0 +1,429 @@
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.8"/>
8
+ <title>GLFW: Introduction to the API</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.8 -->
32
+ <script type="text/javascript">
33
+ /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
34
+ var searchBox = new SearchBox("searchBox", "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&amp;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
+ <div id="MSearchResults">
58
+ <div class="SRPage">
59
+ <div id="SRIndex">
60
+ <div id="SRResults"></div>
61
+ <div class="SRStatus" id="Loading">Loading...</div>
62
+ <div class="SRStatus" id="Searching">Searching...</div>
63
+ <div class="SRStatus" id="NoMatches">No Matches</div>
64
+ </div>
65
+ </div>
66
+ </div>
67
+ </div>
68
+
69
+ </div><!-- top -->
70
+ <div><div class="header">
71
+ <div class="headertitle"><div class="title">Introduction to the API</div></div>
72
+ </div><!--header-->
73
+ <div class="contents">
74
+ <div class="toc"><h3>Table of Contents</h3>
75
+ <ul><li class="level1"><a href="#intro_init">Initialization and termination</a><ul><li class="level2"><a href="#intro_init_init">Initializing GLFW</a></li>
76
+ <li class="level2"><a href="#init_hints">Initialization hints</a><ul><li class="level3"><a href="#init_hints_shared">Shared init hints</a></li>
77
+ <li class="level3"><a href="#init_hints_osx">macOS specific init hints</a></li>
78
+ <li class="level3"><a href="#init_hints_wayland">Wayland specific init hints</a></li>
79
+ <li class="level3"><a href="#init_hints_x11">X11 specific init hints</a></li>
80
+ <li class="level3"><a href="#init_hints_values">Supported and default values</a></li>
81
+ </ul>
82
+ </li>
83
+ <li class="level2"><a href="#platform">Runtime platform selection</a></li>
84
+ <li class="level2"><a href="#init_allocator">Custom heap memory allocator</a></li>
85
+ <li class="level2"><a href="#intro_init_terminate">Terminating GLFW</a></li>
86
+ </ul>
87
+ </li>
88
+ <li class="level1"><a href="#error_handling">Error handling</a></li>
89
+ <li class="level1"><a href="#coordinate_systems">Coordinate systems</a></li>
90
+ <li class="level1"><a href="#guarantees_limitations">Guarantees and limitations</a><ul><li class="level2"><a href="#lifetime">Pointer lifetimes</a></li>
91
+ <li class="level2"><a href="#reentrancy">Reentrancy</a></li>
92
+ <li class="level2"><a href="#thread_safety">Thread safety</a></li>
93
+ <li class="level2"><a href="#compatibility">Version compatibility</a></li>
94
+ <li class="level2"><a href="#event_order">Event order</a></li>
95
+ </ul>
96
+ </li>
97
+ <li class="level1"><a href="#intro_version">Version management</a><ul><li class="level2"><a href="#intro_version_compile">Compile-time version</a></li>
98
+ <li class="level2"><a href="#intro_version_runtime">Run-time version</a></li>
99
+ <li class="level2"><a href="#intro_version_string">Version string</a></li>
100
+ </ul>
101
+ </li>
102
+ </ul>
103
+ </div>
104
+ <div class="textblock"><p>This guide introduces the basic concepts of GLFW and describes initialization, error handling and API guarantees and limitations. For a broad but shallow tutorial, see <a class="el" href="quick_guide.html">Getting started</a> instead. For details on a specific function in this category, see the <a class="el" href="group__init.html">Initialization, version and error reference</a>.</p>
105
+ <p>There are also guides for the other areas of GLFW.</p>
106
+ <ul>
107
+ <li><a class="el" href="window_guide.html">Window guide</a></li>
108
+ <li><a class="el" href="context_guide.html">Context guide</a></li>
109
+ <li><a class="el" href="vulkan_guide.html">Vulkan guide</a></li>
110
+ <li><a class="el" href="monitor_guide.html">Monitor guide</a></li>
111
+ <li><a class="el" href="input_guide.html">Input guide</a></li>
112
+ </ul>
113
+ <h1><a class="anchor" id="intro_init"></a>
114
+ Initialization and termination</h1>
115
+ <p>Before most GLFW functions may be called, the library must be initialized. This initialization checks what features are available on the machine, enumerates monitors, initializes the timer and performs any required platform-specific initialization.</p>
116
+ <p>Only the following functions may be called before the library has been successfully initialized, and only from the main thread.</p>
117
+ <ul>
118
+ <li><a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a></li>
119
+ <li><a class="el" href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">glfwGetVersionString</a></li>
120
+ <li><a class="el" href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a></li>
121
+ <li><a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a></li>
122
+ <li><a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a></li>
123
+ <li><a class="el" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a></li>
124
+ <li><a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a></li>
125
+ <li><a class="el" href="group__init.html#ga76af552d0307bb5f7791f245417d4752">glfwInitVulkanLoader</a></li>
126
+ <li><a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a></li>
127
+ <li><a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a></li>
128
+ </ul>
129
+ <p>Calling any other function before successful initialization will cause a <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> error.</p>
130
+ <h2><a class="anchor" id="intro_init_init"></a>
131
+ Initializing GLFW</h2>
132
+ <p>The library is initialized with <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>, which returns <code>GLFW_FALSE</code> if an error occurred.</p>
133
+ <div class="fragment"><div class="line"><span class="keywordflow">if</span> (!<a class="code hl_function" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>())</div>
134
+ <div class="line">{</div>
135
+ <div class="line"> <span class="comment">// Handle initialization failure</span></div>
136
+ <div class="line">}</div>
137
+ <div class="ttc" id="agroup__init_html_ga317aac130a235ab08c6db0834907d85e"><div class="ttname"><a href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a></div><div class="ttdeci">int glfwInit(void)</div><div class="ttdoc">Initializes the GLFW library.</div></div>
138
+ </div><!-- fragment --><p>If any part of initialization fails, any parts that succeeded are terminated as if <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> had been called. The library only needs to be initialized once and additional calls to an already initialized library will return <code>GLFW_TRUE</code> immediately.</p>
139
+ <p>Once the library has been successfully initialized, it should be terminated before the application exits. Modern systems are very good at freeing resources allocated by programs that exit, but GLFW sometimes has to change global system settings and these might not be restored without termination.</p>
140
+ <p><b>macOS:</b> When the library is initialized the main menu and dock icon are created. These are not desirable for a command-line only program. The creation of the main menu and dock icon can be disabled with the <a class="el" href="group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">GLFW_COCOA_MENUBAR</a> init hint.</p>
141
+ <h2><a class="anchor" id="init_hints"></a>
142
+ Initialization hints</h2>
143
+ <p>Initialization hints are set before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> and affect how the library behaves until termination. Hints are set with <a class="el" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a>.</p>
144
+ <div class="fragment"><div class="line"><a class="code hl_function" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a>(<a class="code hl_define" href="group__init.html#gab9c0534709fda03ec8959201da3a9a18">GLFW_JOYSTICK_HAT_BUTTONS</a>, <a class="code hl_define" href="group__init.html#gac877fe3b627d21ef3a0a23e0a73ba8c5">GLFW_FALSE</a>);</div>
145
+ <div class="ttc" id="agroup__init_html_ga110fd1d3f0412822b4f1908c026f724a"><div class="ttname"><a href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a></div><div class="ttdeci">void glfwInitHint(int hint, int value)</div><div class="ttdoc">Sets the specified init hint to the desired value.</div></div>
146
+ <div class="ttc" id="agroup__init_html_gab9c0534709fda03ec8959201da3a9a18"><div class="ttname"><a href="group__init.html#gab9c0534709fda03ec8959201da3a9a18">GLFW_JOYSTICK_HAT_BUTTONS</a></div><div class="ttdeci">#define GLFW_JOYSTICK_HAT_BUTTONS</div><div class="ttdoc">Joystick hat buttons init hint.</div><div class="ttdef"><b>Definition</b> glfw3.h:1299</div></div>
147
+ <div class="ttc" id="agroup__init_html_gac877fe3b627d21ef3a0a23e0a73ba8c5"><div class="ttname"><a href="group__init.html#gac877fe3b627d21ef3a0a23e0a73ba8c5">GLFW_FALSE</a></div><div class="ttdeci">#define GLFW_FALSE</div><div class="ttdoc">Zero.</div><div class="ttdef"><b>Definition</b> glfw3.h:321</div></div>
148
+ </div><!-- fragment --><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>
149
+ <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>
150
+ <h3><a class="anchor" id="init_hints_shared"></a>
151
+ Shared init hints</h3>
152
+ <p><a class="anchor" id="GLFW_PLATFORM"></a><b>GLFW_PLATFORM</b> specifies the platform to use for windowing and input. Possible values are <code>GLFW_ANY_PLATFORM</code>, <code>GLFW_PLATFORM_WIN32</code>, <code>GLFW_PLATFORM_COCOA</code>, <code>GLFW_PLATFORM_WAYLAND</code>, <code>GLFW_PLATFORM_X11</code> and <code>GLFW_PLATFORM_NULL</code>. The default value is <code>GLFW_ANY_PLATFORM</code>, which will choose any platform the library includes support for except for the Null backend.</p>
153
+ <p><a class="anchor" id="GLFW_JOYSTICK_HAT_BUTTONS"></a><b>GLFW_JOYSTICK_HAT_BUTTONS</b> specifies whether to also expose joystick hats as buttons, for compatibility with earlier versions of GLFW that did not have <a class="el" href="group__input.html#ga06e660841b3e79c54da4f54a932c5a2c">glfwGetJoystickHats</a>. Possible values are <code>GLFW_TRUE</code> and <code>GLFW_FALSE</code>.</p>
154
+ <p><a class="anchor" id="GLFW_ANGLE_PLATFORM_TYPE_hint"></a><b>GLFW_ANGLE_PLATFORM_TYPE</b> specifies the platform type (rendering backend) to request when using OpenGL ES and EGL via <a href="https://chromium.googlesource.com/angle/angle/">ANGLE</a>. If the requested platform type is unavailable, ANGLE will use its default. Possible values are one of <code>GLFW_ANGLE_PLATFORM_TYPE_NONE</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_OPENGL</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_OPENGLES</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_D3D9</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_D3D11</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_VULKAN</code> and <code>GLFW_ANGLE_PLATFORM_TYPE_METAL</code>.</p>
155
+ <p>The ANGLE platform type is specified via the <code>EGL_ANGLE_platform_angle</code> extension. This extension is not used if this hint is <code>GLFW_ANGLE_PLATFORM_TYPE_NONE</code>, which is the default value.</p>
156
+ <h3><a class="anchor" id="init_hints_osx"></a>
157
+ macOS specific init hints</h3>
158
+ <p><a class="anchor" id="GLFW_COCOA_CHDIR_RESOURCES_hint"></a><b>GLFW_COCOA_CHDIR_RESOURCES</b> specifies whether to set the current directory to the application to the <code>Contents/Resources</code> subdirectory of the application's bundle, if present. Possible values are <code>GLFW_TRUE</code> and <code>GLFW_FALSE</code>. This is ignored on other platforms.</p>
159
+ <p><a class="anchor" id="GLFW_COCOA_MENUBAR_hint"></a><b>GLFW_COCOA_MENUBAR</b> specifies whether to create the menu bar and dock icon when GLFW is initialized. This applies whether the menu bar is created from a nib or manually by GLFW. Possible values are <code>GLFW_TRUE</code> and <code>GLFW_FALSE</code>. This is ignored on other platforms.</p>
160
+ <h3><a class="anchor" id="init_hints_wayland"></a>
161
+ Wayland specific init hints</h3>
162
+ <p><a class="anchor" id="GLFW_WAYLAND_LIBDECOR_hint"></a><b>GLFW_WAYLAND_LIBDECOR</b> specifies whether to use <a href="https://gitlab.freedesktop.org/libdecor/libdecor">libdecor</a> for window decorations where available. Possible values are <code>GLFW_WAYLAND_PREFER_LIBDECOR</code> and <code>GLFW_WAYLAND_DISABLE_LIBDECOR</code>. This is ignored on other platforms.</p>
163
+ <h3><a class="anchor" id="init_hints_x11"></a>
164
+ X11 specific init hints</h3>
165
+ <p><a class="anchor" id="GLFW_X11_XCB_VULKAN_SURFACE_hint"></a><b>GLFW_X11_XCB_VULKAN_SURFACE</b> specifies whether to prefer the <code>VK_KHR_xcb_surface</code> extension for creating Vulkan surfaces, or whether to use the <code>VK_KHR_xlib_surface</code> extension. Possible values are <code>GLFW_TRUE</code> and <code>GLFW_FALSE</code>. This is ignored on other platforms.</p>
166
+ <h3><a class="anchor" id="init_hints_values"></a>
167
+ Supported and default values</h3>
168
+ <table class="markdownTable">
169
+ <tr class="markdownTableHead">
170
+ <th class="markdownTableHeadNone">Initialization hint </th><th class="markdownTableHeadNone">Default value </th><th class="markdownTableHeadNone">Supported values </th></tr>
171
+ <tr class="markdownTableRowOdd">
172
+ <td class="markdownTableBodyNone"><a class="el" href="intro_guide.html#GLFW_PLATFORM">GLFW_PLATFORM</a> </td><td class="markdownTableBodyNone"><code>GLFW_ANY_PLATFORM</code> </td><td class="markdownTableBodyNone"><code>GLFW_ANY_PLATFORM</code>, <code>GLFW_PLATFORM_WIN32</code>, <code>GLFW_PLATFORM_COCOA</code>, <code>GLFW_PLATFORM_WAYLAND</code>, <code>GLFW_PLATFORM_X11</code> or <code>GLFW_PLATFORM_NULL</code> </td></tr>
173
+ <tr class="markdownTableRowEven">
174
+ <td class="markdownTableBodyNone"><a class="el" href="intro_guide.html#GLFW_JOYSTICK_HAT_BUTTONS">GLFW_JOYSTICK_HAT_BUTTONS</a> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> or <code>GLFW_FALSE</code> </td></tr>
175
+ <tr class="markdownTableRowOdd">
176
+ <td class="markdownTableBodyNone"><a class="el" href="group__init.html#gaec269b24cf549ab46292c0125d8bbdce">GLFW_ANGLE_PLATFORM_TYPE</a> </td><td class="markdownTableBodyNone"><code>GLFW_ANGLE_PLATFORM_TYPE_NONE</code> </td><td class="markdownTableBodyNone"><code>GLFW_ANGLE_PLATFORM_TYPE_NONE</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_OPENGL</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_OPENGLES</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_D3D9</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_D3D11</code>, <code>GLFW_ANGLE_PLATFORM_TYPE_VULKAN</code> or <code>GLFW_ANGLE_PLATFORM_TYPE_METAL</code> </td></tr>
177
+ <tr class="markdownTableRowEven">
178
+ <td class="markdownTableBodyNone"><a class="el" href="group__init.html#gab937983147a3158d45f88fad7129d9f2">GLFW_COCOA_CHDIR_RESOURCES</a> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> or <code>GLFW_FALSE</code> </td></tr>
179
+ <tr class="markdownTableRowOdd">
180
+ <td class="markdownTableBodyNone"><a class="el" href="group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">GLFW_COCOA_MENUBAR</a> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> or <code>GLFW_FALSE</code> </td></tr>
181
+ <tr class="markdownTableRowEven">
182
+ <td class="markdownTableBodyNone"><a class="el" href="group__init.html#ga2a3f2fd7695902c498b050215b3db452">GLFW_WAYLAND_LIBDECOR</a> </td><td class="markdownTableBodyNone"><code>GLFW_WAYLAND_PREFER_LIBDECOR</code> </td><td class="markdownTableBodyNone"><code>GLFW_WAYLAND_PREFER_LIBDECOR</code> or <code>GLFW_WAYLAND_DISABLE_LIBDECOR</code> </td></tr>
183
+ <tr class="markdownTableRowOdd">
184
+ <td class="markdownTableBodyNone"><a class="el" href="group__init.html#gaa341e303ebeb8e4199b8ab8be84351f6">GLFW_X11_XCB_VULKAN_SURFACE</a> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> </td><td class="markdownTableBodyNone"><code>GLFW_TRUE</code> or <code>GLFW_FALSE</code> </td></tr>
185
+ </table>
186
+ <h2><a class="anchor" id="platform"></a>
187
+ Runtime platform selection</h2>
188
+ <p>GLFW can be compiled for more than one platform (window system) at once. This lets a single library binary support both Wayland and X11 on Linux and other Unix-like systems.</p>
189
+ <p>You can control platform selection via the <a class="el" href="intro_guide.html#GLFW_PLATFORM">GLFW_PLATFORM</a> initialization hint. By default, this is set to <a class="el" href="group__init.html#ga18b2d37374d0dea28cd69194fa85b859">GLFW_ANY_PLATFORM</a>, which will look for supported window systems in order of priority and select the first one it finds. It can also be set to any specific platform to have GLFW only look for that one.</p>
190
+ <div class="fragment"><div class="line"><a class="code hl_function" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a>(<a class="code hl_define" href="group__init.html#ga9d38bf1fdf4f91d6565401734a7cd967">GLFW_PLATFORM</a>, <a class="code hl_define" href="group__init.html#gaf5333f3933e9c248a00cfda6523f386b">GLFW_PLATFORM_X11</a>);</div>
191
+ <div class="ttc" id="agroup__init_html_ga9d38bf1fdf4f91d6565401734a7cd967"><div class="ttname"><a href="group__init.html#ga9d38bf1fdf4f91d6565401734a7cd967">GLFW_PLATFORM</a></div><div class="ttdeci">#define GLFW_PLATFORM</div><div class="ttdoc">Platform selection init hint.</div><div class="ttdef"><b>Definition</b> glfw3.h:1309</div></div>
192
+ <div class="ttc" id="agroup__init_html_gaf5333f3933e9c248a00cfda6523f386b"><div class="ttname"><a href="group__init.html#gaf5333f3933e9c248a00cfda6523f386b">GLFW_PLATFORM_X11</a></div><div class="ttdeci">#define GLFW_PLATFORM_X11</div><div class="ttdef"><b>Definition</b> glfw3.h:1342</div></div>
193
+ </div><!-- fragment --><p>This mechanism also provides the Null platform, which is always supported but needs to be explicitly requested. This platform is effectively a stub, emulating a window system on a single 1080p monitor, but will not interact with any actual window system.</p>
194
+ <div class="fragment"><div class="line"><a class="code hl_function" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a>(<a class="code hl_define" href="group__init.html#ga9d38bf1fdf4f91d6565401734a7cd967">GLFW_PLATFORM</a>, <a class="code hl_define" href="group__init.html#gac06fad5a4866ae7a1d7b2675fac72d7f">GLFW_PLATFORM_NULL</a>);</div>
195
+ <div class="ttc" id="agroup__init_html_gac06fad5a4866ae7a1d7b2675fac72d7f"><div class="ttname"><a href="group__init.html#gac06fad5a4866ae7a1d7b2675fac72d7f">GLFW_PLATFORM_NULL</a></div><div class="ttdeci">#define GLFW_PLATFORM_NULL</div><div class="ttdef"><b>Definition</b> glfw3.h:1343</div></div>
196
+ </div><!-- fragment --><p>You can test whether a library binary was compiled with support for a specific platform with <a class="el" href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a>.</p>
197
+ <div class="fragment"><div class="line"><span class="keywordflow">if</span> (<a class="code hl_function" href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a>(<a class="code hl_define" href="group__init.html#gac4b08906a3cbf26c518a4a543eedd740">GLFW_PLATFORM_WAYLAND</a>))</div>
198
+ <div class="line"> <a class="code hl_function" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a>(<a class="code hl_define" href="group__init.html#ga9d38bf1fdf4f91d6565401734a7cd967">GLFW_PLATFORM</a>, <a class="code hl_define" href="group__init.html#gac4b08906a3cbf26c518a4a543eedd740">GLFW_PLATFORM_WAYLAND</a>);</div>
199
+ <div class="ttc" id="agroup__init_html_ga8785d2b6b36632368d803e78079d38ed"><div class="ttname"><a href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a></div><div class="ttdeci">int glfwPlatformSupported(int platform)</div><div class="ttdoc">Returns whether the library includes support for the specified platform.</div></div>
200
+ <div class="ttc" id="agroup__init_html_gac4b08906a3cbf26c518a4a543eedd740"><div class="ttname"><a href="group__init.html#gac4b08906a3cbf26c518a4a543eedd740">GLFW_PLATFORM_WAYLAND</a></div><div class="ttdeci">#define GLFW_PLATFORM_WAYLAND</div><div class="ttdef"><b>Definition</b> glfw3.h:1341</div></div>
201
+ </div><!-- fragment --><p>Once GLFW has been initialized, you can query which platform was selected with <a class="el" href="group__init.html#ga6d6a983d38bd4e8fd786d7a9061d399e">glfwGetPlatform</a>.</p>
202
+ <div class="fragment"><div class="line"><span class="keywordtype">int</span> platform = <a class="code hl_function" href="group__init.html#ga6d6a983d38bd4e8fd786d7a9061d399e">glfwGetPlatform</a>();</div>
203
+ <div class="ttc" id="agroup__init_html_ga6d6a983d38bd4e8fd786d7a9061d399e"><div class="ttname"><a href="group__init.html#ga6d6a983d38bd4e8fd786d7a9061d399e">glfwGetPlatform</a></div><div class="ttdeci">int glfwGetPlatform(void)</div><div class="ttdoc">Returns the currently selected platform.</div></div>
204
+ </div><!-- fragment --><p>If you are using any <a class="el" href="group__native.html">native access functions</a>, especially on Linux and other Unix-like systems, then you may need to check that you are calling the ones matching the selected platform.</p>
205
+ <h2><a class="anchor" id="init_allocator"></a>
206
+ Custom heap memory allocator</h2>
207
+ <p>The heap memory allocator can be customized before initialization with <a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a>.</p>
208
+ <div class="fragment"><div class="line"><a class="code hl_struct" href="struct_g_l_f_wallocator.html">GLFWallocator</a> allocator;</div>
209
+ <div class="line">allocator.<a class="code hl_variable" href="struct_g_l_f_wallocator.html#a18a798136f17a9cb105be18312193bf7">allocate</a> = my_malloc;</div>
210
+ <div class="line">allocator.<a class="code hl_variable" href="struct_g_l_f_wallocator.html#af5a674af9e170095b968f467233437be">reallocate</a> = my_realloc;</div>
211
+ <div class="line">allocator.<a class="code hl_variable" href="struct_g_l_f_wallocator.html#ab74cf9a969e73e6eb65a6112a591a988">deallocate</a> = my_free;</div>
212
+ <div class="line">allocator.<a class="code hl_variable" href="struct_g_l_f_wallocator.html#af6153be74dbaf7f0a7e8bd3bfc039910">user</a> = NULL;</div>
213
+ <div class="line"> </div>
214
+ <div class="line"><a class="code hl_function" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a>(&amp;allocator);</div>
215
+ <div class="ttc" id="agroup__init_html_ga9dde93e9891fa7dd17e4194c9f3ae7c6"><div class="ttname"><a href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a></div><div class="ttdeci">void glfwInitAllocator(const GLFWallocator *allocator)</div><div class="ttdoc">Sets the init allocator to the desired value.</div></div>
216
+ <div class="ttc" id="astruct_g_l_f_wallocator_html"><div class="ttname"><a href="struct_g_l_f_wallocator.html">GLFWallocator</a></div><div class="ttdoc">Custom heap memory allocator.</div><div class="ttdef"><b>Definition</b> glfw3.h:2138</div></div>
217
+ <div class="ttc" id="astruct_g_l_f_wallocator_html_a18a798136f17a9cb105be18312193bf7"><div class="ttname"><a href="struct_g_l_f_wallocator.html#a18a798136f17a9cb105be18312193bf7">GLFWallocator::allocate</a></div><div class="ttdeci">GLFWallocatefun allocate</div><div class="ttdef"><b>Definition</b> glfw3.h:2142</div></div>
218
+ <div class="ttc" id="astruct_g_l_f_wallocator_html_ab74cf9a969e73e6eb65a6112a591a988"><div class="ttname"><a href="struct_g_l_f_wallocator.html#ab74cf9a969e73e6eb65a6112a591a988">GLFWallocator::deallocate</a></div><div class="ttdeci">GLFWdeallocatefun deallocate</div><div class="ttdef"><b>Definition</b> glfw3.h:2150</div></div>
219
+ <div class="ttc" id="astruct_g_l_f_wallocator_html_af5a674af9e170095b968f467233437be"><div class="ttname"><a href="struct_g_l_f_wallocator.html#af5a674af9e170095b968f467233437be">GLFWallocator::reallocate</a></div><div class="ttdeci">GLFWreallocatefun reallocate</div><div class="ttdef"><b>Definition</b> glfw3.h:2146</div></div>
220
+ <div class="ttc" id="astruct_g_l_f_wallocator_html_af6153be74dbaf7f0a7e8bd3bfc039910"><div class="ttname"><a href="struct_g_l_f_wallocator.html#af6153be74dbaf7f0a7e8bd3bfc039910">GLFWallocator::user</a></div><div class="ttdeci">void * user</div><div class="ttdef"><b>Definition</b> glfw3.h:2154</div></div>
221
+ </div><!-- fragment --><p>The allocator will be made active at the beginning of initialization and will be used by GLFW until the library has been fully terminated. Any allocator set after initialization will be picked up only at the next initialization.</p>
222
+ <p>The allocator will only be used for allocations that would have been made with the C standard library. Memory allocations that must be made with platform specific APIs will still use those.</p>
223
+ <p>The allocation function must have a signature matching <a class="el" href="group__init.html#ga4306a564e9f60f4de8cc8f31731a3120">GLFWallocatefun</a>. It receives the desired size, in bytes, and the user pointer passed to <a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a> and returns the address to the allocated memory block.</p>
224
+ <div class="fragment"><div class="line"><span class="keywordtype">void</span>* my_malloc(<span class="keywordtype">size_t</span> size, <span class="keywordtype">void</span>* user)</div>
225
+ <div class="line">{</div>
226
+ <div class="line"> ...</div>
227
+ <div class="line">}</div>
228
+ </div><!-- fragment --><p>The documentation for <a class="el" href="group__init.html#ga4306a564e9f60f4de8cc8f31731a3120">GLFWallocatefun</a> also lists the requirements and limitations for an allocation function. If the active one does not meet all of these, GLFW may fail.</p>
229
+ <p>The reallocation function must have a function signature matching <a class="el" href="group__init.html#ga3e88a829615d8efe8bec1746f7309c63">GLFWreallocatefun</a>. It receives the memory block to be reallocated, the new desired size, in bytes, and the user pointer passed to <a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a> and returns the address to the resized memory block.</p>
230
+ <div class="fragment"><div class="line"><span class="keywordtype">void</span>* my_realloc(<span class="keywordtype">void</span>* block, <span class="keywordtype">size_t</span> size, <span class="keywordtype">void</span>* user)</div>
231
+ <div class="line">{</div>
232
+ <div class="line"> ...</div>
233
+ <div class="line">}</div>
234
+ </div><!-- fragment --><p>The documentation for <a class="el" href="group__init.html#ga3e88a829615d8efe8bec1746f7309c63">GLFWreallocatefun</a> also lists the requirements and limitations for a reallocation function. If the active one does not meet all of these, GLFW may fail.</p>
235
+ <p>The deallocation function must have a function signature matching <a class="el" href="group__init.html#ga7181615eda94c4b07bd72bdcee39fa28">GLFWdeallocatefun</a>. It receives the memory block to be deallocated and the user pointer passed to <a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a>.</p>
236
+ <div class="fragment"><div class="line"><span class="keywordtype">void</span> my_free(<span class="keywordtype">void</span>* block, <span class="keywordtype">void</span>* user)</div>
237
+ <div class="line">{</div>
238
+ <div class="line"> ...</div>
239
+ <div class="line">}</div>
240
+ </div><!-- fragment --><p>The documentation for <a class="el" href="group__init.html#ga7181615eda94c4b07bd72bdcee39fa28">GLFWdeallocatefun</a> also lists the requirements and limitations for a deallocation function. If the active one does not meet all of these, GLFW may fail.</p>
241
+ <h2><a class="anchor" id="intro_init_terminate"></a>
242
+ Terminating GLFW</h2>
243
+ <p>Before your application exits, you should terminate the GLFW library if it has been initialized. This is done with <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>.</p>
244
+ <div class="fragment"><div class="line"><a class="code hl_function" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>();</div>
245
+ <div class="ttc" id="agroup__init_html_gaaae48c0a18607ea4a4ba951d939f0901"><div class="ttname"><a href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a></div><div class="ttdeci">void glfwTerminate(void)</div><div class="ttdoc">Terminates the GLFW library.</div></div>
246
+ </div><!-- fragment --><p>This will destroy any remaining window, monitor and cursor objects, restore any modified gamma ramps, re-enable the screensaver if it had been disabled and free any other resources allocated by GLFW.</p>
247
+ <p>Once the library is terminated, it is as if it had never been initialized, therefore you will need to initialize it again before being able to use GLFW. If the library was not initialized or had already been terminated, it returns immediately.</p>
248
+ <h1><a class="anchor" id="error_handling"></a>
249
+ Error handling</h1>
250
+ <p>Some GLFW functions have return values that indicate an error, but this is often not very helpful when trying to figure out what happened or why it occurred. Other functions have no return value reserved for errors, so error notification needs a separate channel. Finally, far from all GLFW functions have return values.</p>
251
+ <p>The last <a class="el" href="group__errors.html">error code</a> for the calling thread can be queried at any time with <a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a>.</p>
252
+ <div class="fragment"><div class="line"><span class="keywordtype">int</span> code = <a class="code hl_function" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a>(NULL);</div>
253
+ <div class="line"> </div>
254
+ <div class="line"><span class="keywordflow">if</span> (code != <a class="code hl_define" href="group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4">GLFW_NO_ERROR</a>)</div>
255
+ <div class="line"> handle_error(code);</div>
256
+ <div class="ttc" id="agroup__errors_html_gafa30deee5db4d69c4c93d116ed87dbf4"><div class="ttname"><a href="group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4">GLFW_NO_ERROR</a></div><div class="ttdeci">#define GLFW_NO_ERROR</div><div class="ttdoc">No error has occurred.</div><div class="ttdef"><b>Definition</b> glfw3.h:672</div></div>
257
+ <div class="ttc" id="agroup__init_html_ga944986b4ec0b928d488141f92982aa18"><div class="ttname"><a href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a></div><div class="ttdeci">int glfwGetError(const char **description)</div><div class="ttdoc">Returns and clears the last error for the calling thread.</div></div>
258
+ </div><!-- fragment --><p>If no error has occurred since the last call, <a class="el" href="group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4">GLFW_NO_ERROR</a> (zero) is returned. The error is cleared before the function returns.</p>
259
+ <p>The error code indicates the general category of the error. Some error codes, such as <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a> has only a single meaning, whereas others like <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a> are used for many different errors.</p>
260
+ <p>GLFW often has more information about an error than its general category. You can retrieve a UTF-8 encoded human-readable description along with the error code. If no error has occurred since the last call, the description is set to <code>NULL</code>.</p>
261
+ <div class="fragment"><div class="line"><span class="keyword">const</span> <span class="keywordtype">char</span>* description;</div>
262
+ <div class="line"><span class="keywordtype">int</span> code = <a class="code hl_function" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a>(&amp;description);</div>
263
+ <div class="line"> </div>
264
+ <div class="line"><span class="keywordflow">if</span> (description)</div>
265
+ <div class="line"> display_error_message(code, description);</div>
266
+ </div><!-- fragment --><p>The retrieved description string is only valid until the next error occurs. This means you must make a copy of it if you want to keep it.</p>
267
+ <p>You can also set an error callback, which will be called each time an error occurs. It is set with <a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a>.</p>
268
+ <div class="fragment"><div class="line"><a class="code hl_function" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a>(error_callback);</div>
269
+ <div class="ttc" id="agroup__init_html_gaff45816610d53f0b83656092a4034f40"><div class="ttname"><a href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a></div><div class="ttdeci">GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback)</div><div class="ttdoc">Sets the error callback.</div></div>
270
+ </div><!-- fragment --><p>The error callback receives the same error code and human-readable description returned by <a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a>.</p>
271
+ <div class="fragment"><div class="line"><span class="keywordtype">void</span> error_callback(<span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span>* description)</div>
272
+ <div class="line">{</div>
273
+ <div class="line"> display_error_message(code, description);</div>
274
+ <div class="line">}</div>
275
+ </div><!-- fragment --><p>The error callback is called after the error is stored, so calling <a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a> from within the error callback returns the same values as the callback argument.</p>
276
+ <p>The description string passed to the callback is only valid until the error callback returns. This means you must make a copy of it if you want to keep it.</p>
277
+ <p><b>Reported errors are never fatal.</b> As long as GLFW was successfully initialized, it will remain initialized and in a safe state until terminated regardless of how many errors occur. If an error occurs during initialization that causes <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> to fail, any part of the library that was initialized will be safely terminated.</p>
278
+ <p>Do not rely on a currently invalid call to generate a specific error, as in the future that same call may generate a different error or become valid.</p>
279
+ <h1><a class="anchor" id="coordinate_systems"></a>
280
+ Coordinate systems</h1>
281
+ <p>GLFW has two primary coordinate systems: the <em>virtual screen</em> and the window <em>content area</em> or <em>content area</em>. Both use the same unit: <em>virtual screen coordinates</em>, or just <em>screen coordinates</em>, which don't necessarily correspond to pixels.</p>
282
+ <p><img src="spaces.svg" alt="" style="pointer-events: none;" width="90%" class="inline"/></p>
283
+ <p>Both the virtual screen and the content area coordinate systems have the X-axis pointing to the right and the Y-axis pointing down.</p>
284
+ <p>Window and monitor positions are specified as the position of the upper-left corners of their content areas relative to the virtual screen, while cursor positions are specified relative to a window's content area.</p>
285
+ <p>Because the origin of the window's content area coordinate system is also the point from which the window position is specified, you can translate content area coordinates to the virtual screen by adding the window position. The window frame, when present, extends out from the content area but does not affect the window position.</p>
286
+ <p>Almost all positions and sizes in GLFW are measured in screen coordinates relative to one of the two origins above. This includes cursor positions, window positions and sizes, window frame sizes, monitor positions and video mode resolutions.</p>
287
+ <p>Two exceptions are the <a class="el" href="monitor_guide.html#monitor_size">monitor physical size</a>, which is measured in millimetres, and <a class="el" href="window_guide.html#window_fbsize">framebuffer size</a>, which is measured in pixels.</p>
288
+ <p>Pixels and screen coordinates may map 1:1 on your machine, but they won't on every other machine, for example on a Mac with a Retina display. The ratio between screen coordinates and pixels may also change at run-time depending on which monitor the window is currently considered to be on.</p>
289
+ <h1><a class="anchor" id="guarantees_limitations"></a>
290
+ Guarantees and limitations</h1>
291
+ <p>This section describes the conditions under which GLFW can be expected to function, barring bugs in the operating system or drivers. Use of GLFW outside these limits may work on some platforms, or on some machines, or some of the time, or on some versions of GLFW, but it may break at any time and this will not be considered a bug.</p>
292
+ <h2><a class="anchor" id="lifetime"></a>
293
+ Pointer lifetimes</h2>
294
+ <p>GLFW will never free any pointer you provide to it, and you must never free any pointer it provides to you.</p>
295
+ <p>Many GLFW functions return pointers to dynamically allocated structures, strings or arrays, and some callbacks are provided with strings or arrays. These are always managed by GLFW and should never be freed by the application. The lifetime of these pointers is documented for each GLFW function and callback. If you need to keep this data, you must copy it before its lifetime expires.</p>
296
+ <p>Many GLFW functions accept pointers to structures or strings allocated by the application. These are never freed by GLFW and are always the responsibility of the application. If GLFW needs to keep the data in these structures or strings, it is copied before the function returns.</p>
297
+ <p>Pointer lifetimes are guaranteed not to be shortened in future minor or patch releases.</p>
298
+ <h2><a class="anchor" id="reentrancy"></a>
299
+ Reentrancy</h2>
300
+ <p>GLFW event processing and object destruction are not reentrant. This means that the following functions must not be called from any callback function:</p>
301
+ <ul>
302
+ <li><a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a></li>
303
+ <li><a class="el" href="group__input.html#ga81b952cd1764274d0db7fb3c5a79ba6a">glfwDestroyCursor</a></li>
304
+ <li><a class="el" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a></li>
305
+ <li><a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a></li>
306
+ <li><a class="el" href="group__window.html#ga605a178db92f1a7f1a925563ef3ea2cf">glfwWaitEventsTimeout</a></li>
307
+ <li><a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a></li>
308
+ </ul>
309
+ <p>These functions may be made reentrant in future minor or patch releases, but functions not on this list will not be made non-reentrant.</p>
310
+ <h2><a class="anchor" id="thread_safety"></a>
311
+ Thread safety</h2>
312
+ <p>Most GLFW functions must only be called from the main thread (the thread that calls main), but some may be called from any thread once the library has been initialized. Before initialization the whole library is thread-unsafe.</p>
313
+ <p>The reference documentation for every GLFW function states whether it is limited to the main thread.</p>
314
+ <p>Initialization, termination, event processing and the creation and destruction of windows, cursors and OpenGL and OpenGL ES contexts are all restricted to the main thread due to limitations of one or several platforms.</p>
315
+ <p>Because event processing must be performed on the main thread, all callbacks except for the error callback will only be called on that thread. The error callback may be called on any thread, as any GLFW function may generate errors.</p>
316
+ <p>The error code and description may be queried from any thread.</p>
317
+ <ul>
318
+ <li><a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a></li>
319
+ </ul>
320
+ <p>Empty events may be posted from any thread.</p>
321
+ <ul>
322
+ <li><a class="el" href="group__window.html#gab5997a25187e9fd5c6f2ecbbc8dfd7e9">glfwPostEmptyEvent</a></li>
323
+ </ul>
324
+ <p>The window user pointer and close flag may be read and written from any thread, but this is not synchronized by GLFW.</p>
325
+ <ul>
326
+ <li><a class="el" href="group__window.html#gae77a4add0d2023ca21ff1443ced01653">glfwGetWindowUserPointer</a></li>
327
+ <li><a class="el" href="group__window.html#ga3d2fc6026e690ab31a13f78bc9fd3651">glfwSetWindowUserPointer</a></li>
328
+ <li><a class="el" href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a></li>
329
+ <li><a class="el" href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a></li>
330
+ </ul>
331
+ <p>These functions for working with OpenGL and OpenGL ES contexts may be called from any thread, but the window object is not synchronized by GLFW.</p>
332
+ <ul>
333
+ <li><a class="el" href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a></li>
334
+ <li><a class="el" href="group__context.html#gad94e80185397a6cf5fe2ab30567af71c">glfwGetCurrentContext</a></li>
335
+ <li><a class="el" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a></li>
336
+ <li><a class="el" href="group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed">glfwSwapInterval</a></li>
337
+ <li><a class="el" href="group__context.html#ga87425065c011cef1ebd6aac75e059dfa">glfwExtensionSupported</a></li>
338
+ <li><a class="el" href="group__context.html#ga35f1837e6f666781842483937612f163">glfwGetProcAddress</a></li>
339
+ </ul>
340
+ <p>The raw timer functions may be called from any thread.</p>
341
+ <ul>
342
+ <li><a class="el" href="group__input.html#ga3289ee876572f6e91f06df3a24824443">glfwGetTimerFrequency</a></li>
343
+ <li><a class="el" href="group__input.html#ga09b2bd37d328e0b9456c7ec575cc26aa">glfwGetTimerValue</a></li>
344
+ </ul>
345
+ <p>The regular timer may be used from any thread, but reading and writing the timer offset is not synchronized by GLFW.</p>
346
+ <ul>
347
+ <li><a class="el" href="group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a">glfwGetTime</a></li>
348
+ <li><a class="el" href="group__input.html#gaf59589ef6e8b8c8b5ad184b25afd4dc0">glfwSetTime</a></li>
349
+ </ul>
350
+ <p>Library version information may be queried from any thread.</p>
351
+ <ul>
352
+ <li><a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a></li>
353
+ <li><a class="el" href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">glfwGetVersionString</a></li>
354
+ </ul>
355
+ <p>Platform information may be queried from any thread.</p>
356
+ <ul>
357
+ <li><a class="el" href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a></li>
358
+ <li><a class="el" href="group__init.html#ga6d6a983d38bd4e8fd786d7a9061d399e">glfwGetPlatform</a></li>
359
+ </ul>
360
+ <p>All Vulkan related functions may be called from any thread.</p>
361
+ <ul>
362
+ <li><a class="el" href="group__vulkan.html#ga2e7f30931e02464b5bc8d0d4b6f9fe2b">glfwVulkanSupported</a></li>
363
+ <li><a class="el" href="group__vulkan.html#ga99ad342d82f4a3421e2864978cb6d1d6">glfwGetRequiredInstanceExtensions</a></li>
364
+ <li><a class="el" href="group__vulkan.html#gadf228fac94c5fd8f12423ec9af9ff1e9">glfwGetInstanceProcAddress</a></li>
365
+ <li><a class="el" href="group__vulkan.html#gaff3823355cdd7e2f3f9f4d9ea9518d92">glfwGetPhysicalDevicePresentationSupport</a></li>
366
+ <li><a class="el" href="group__vulkan.html#ga1a24536bec3f80b08ead18e28e6ae965">glfwCreateWindowSurface</a></li>
367
+ </ul>
368
+ <p>GLFW uses synchronization objects internally only to manage the per-thread context and error states. Additional synchronization is left to the application.</p>
369
+ <p>Functions that may currently be called from any thread will always remain so, but functions that are currently limited to the main thread may be updated to allow calls from any thread in future releases.</p>
370
+ <h2><a class="anchor" id="compatibility"></a>
371
+ Version compatibility</h2>
372
+ <p>GLFW uses <a href="https://semver.org/">Semantic Versioning</a>. This guarantees source and binary backward compatibility with earlier minor versions of the API. This means that you can drop in a newer version of the library and existing programs will continue to compile and existing binaries will continue to run.</p>
373
+ <p>Once a function or constant has been added, the signature of that function or value of that constant will remain unchanged until the next major version of GLFW. No compatibility of any kind is guaranteed between major versions.</p>
374
+ <p>Undocumented behavior, i.e. behavior that is not described in the documentation, may change at any time until it is documented.</p>
375
+ <p>If the reference documentation and the implementation differ, the reference documentation will almost always take precedence and the implementation will be fixed in the next release. The reference documentation will also take precedence over anything stated in a guide.</p>
376
+ <h2><a class="anchor" id="event_order"></a>
377
+ Event order</h2>
378
+ <p>The order of arrival of related events is not guaranteed to be consistent across platforms. The exception is synthetic key and mouse button release events, which are always delivered after the window defocus event.</p>
379
+ <h1><a class="anchor" id="intro_version"></a>
380
+ Version management</h1>
381
+ <p>GLFW provides mechanisms for identifying what version of GLFW your application was compiled against as well as what version it is currently running against. If you are loading GLFW dynamically (not just linking dynamically), you can use this to verify that the library binary is compatible with your application.</p>
382
+ <h2><a class="anchor" id="intro_version_compile"></a>
383
+ Compile-time version</h2>
384
+ <p>The compile-time version of GLFW is provided by the GLFW header with the <code>GLFW_VERSION_MAJOR</code>, <code>GLFW_VERSION_MINOR</code> and <code>GLFW_VERSION_REVISION</code> macros.</p>
385
+ <div class="fragment"><div class="line">printf(<span class="stringliteral">&quot;Compiled against GLFW %i.%i.%i\n&quot;</span>,</div>
386
+ <div class="line"> <a class="code hl_define" href="group__init.html#ga6337d9ea43b22fc529b2bba066b4a576">GLFW_VERSION_MAJOR</a>,</div>
387
+ <div class="line"> <a class="code hl_define" href="group__init.html#gaf80d40f0aea7088ff337606e9c48f7a3">GLFW_VERSION_MINOR</a>,</div>
388
+ <div class="line"> <a class="code hl_define" href="group__init.html#gab72ae2e2035d9ea461abc3495eac0502">GLFW_VERSION_REVISION</a>);</div>
389
+ <div class="ttc" id="agroup__init_html_ga6337d9ea43b22fc529b2bba066b4a576"><div class="ttname"><a href="group__init.html#ga6337d9ea43b22fc529b2bba066b4a576">GLFW_VERSION_MAJOR</a></div><div class="ttdeci">#define GLFW_VERSION_MAJOR</div><div class="ttdoc">The major version number of the GLFW header.</div><div class="ttdef"><b>Definition</b> glfw3.h:287</div></div>
390
+ <div class="ttc" id="agroup__init_html_gab72ae2e2035d9ea461abc3495eac0502"><div class="ttname"><a href="group__init.html#gab72ae2e2035d9ea461abc3495eac0502">GLFW_VERSION_REVISION</a></div><div class="ttdeci">#define GLFW_VERSION_REVISION</div><div class="ttdoc">The revision number of the GLFW header.</div><div class="ttdef"><b>Definition</b> glfw3.h:301</div></div>
391
+ <div class="ttc" id="agroup__init_html_gaf80d40f0aea7088ff337606e9c48f7a3"><div class="ttname"><a href="group__init.html#gaf80d40f0aea7088ff337606e9c48f7a3">GLFW_VERSION_MINOR</a></div><div class="ttdeci">#define GLFW_VERSION_MINOR</div><div class="ttdoc">The minor version number of the GLFW header.</div><div class="ttdef"><b>Definition</b> glfw3.h:294</div></div>
392
+ </div><!-- fragment --><h2><a class="anchor" id="intro_version_runtime"></a>
393
+ Run-time version</h2>
394
+ <p>The run-time version can be retrieved with <a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a>, a function that may be called regardless of whether GLFW is initialized.</p>
395
+ <div class="fragment"><div class="line"><span class="keywordtype">int</span> major, minor, revision;</div>
396
+ <div class="line"><a class="code hl_function" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a>(&amp;major, &amp;minor, &amp;revision);</div>
397
+ <div class="line"> </div>
398
+ <div class="line">printf(<span class="stringliteral">&quot;Running against GLFW %i.%i.%i\n&quot;</span>, major, minor, revision);</div>
399
+ <div class="ttc" id="agroup__init_html_ga9f8ffaacf3c269cc48eafbf8b9b71197"><div class="ttname"><a href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a></div><div class="ttdeci">void glfwGetVersion(int *major, int *minor, int *rev)</div><div class="ttdoc">Retrieves the version of the GLFW library.</div></div>
400
+ </div><!-- fragment --><h2><a class="anchor" id="intro_version_string"></a>
401
+ Version string</h2>
402
+ <p>GLFW 3 also provides a compile-time generated version string that describes the version, platform, compiler and any platform-specific compile-time options. This is primarily intended for submitting bug reports, to allow developers to see which code paths are enabled in a binary.</p>
403
+ <p>The version string is returned by <a class="el" href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">glfwGetVersionString</a>, a function that may be called regardless of whether GLFW is initialized.</p>
404
+ <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 already provides the version of the running library binary.</p>
405
+ <p><b>Do not use the version string</b> to parse what platforms are supported. The <a class="el" href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a> function lets you query platform support.</p>
406
+ <p><b>GLFW 3.4:</b> The format of this string was changed to support the addition of <a class="el" href="intro_guide.html#platform">runtime platform selection</a>.</p>
407
+ <p>The format of the string is as follows:</p><ul>
408
+ <li>The version of GLFW</li>
409
+ <li>For each supported platform:<ul>
410
+ <li>The name of the window system API</li>
411
+ <li>The name of the window system specific context creation API, if applicable</li>
412
+ </ul>
413
+ </li>
414
+ <li>The names of the always supported context creation APIs EGL and OSMesa</li>
415
+ <li>Any additional compile-time options, APIs and (on Windows) what compiler was used</li>
416
+ </ul>
417
+ <p>For example, compiling GLFW 3.4 with MinGW as a DLL for Windows, may result in a version string like this:</p>
418
+ <div class="fragment"><div class="line">3.4.0 Win32 WGL Null EGL OSMesa MinGW DLL</div>
419
+ </div><!-- fragment --><p>Compiling GLFW as a static library for Linux, with both Wayland and X11 enabled, may result in a version string like this:</p>
420
+ <div class="fragment"><div class="line">3.4.0 Wayland X11 GLX Null EGL OSMesa monotonic</div>
421
+ </div><!-- fragment --> </div></div><!-- contents -->
422
+ </div><!-- PageDoc -->
423
+ <address class="footer">
424
+ <p>
425
+ Last update on Fri Feb 23 2024 for GLFW 3.4.0
426
+ </p>
427
+ </address>
428
+ </body>
429
+ </html>