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,374 @@
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: Moving from GLFW 2 to 3</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">Moving from GLFW 2 to 3</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="#moving_removed">Changed and removed features</a><ul><li class="level2"><a href="#moving_renamed_files">Renamed library and header file</a></li>
76
+ <li class="level2"><a href="#moving_threads">Removal of threading functions</a></li>
77
+ <li class="level2"><a href="#moving_image">Removal of image and texture loading</a></li>
78
+ <li class="level2"><a href="#moving_stdcall">Removal of GLFWCALL macro</a></li>
79
+ <li class="level2"><a href="#moving_window_handles">Window handle parameters</a></li>
80
+ <li class="level2"><a href="#moving_monitor">Explicit monitor selection</a></li>
81
+ <li class="level2"><a href="#moving_autopoll">Removal of automatic event polling</a></li>
82
+ <li class="level2"><a href="#moving_context">Explicit context management</a></li>
83
+ <li class="level2"><a href="#moving_hidpi">Separation of window and framebuffer sizes</a></li>
84
+ <li class="level2"><a href="#moving_window_close">Window closing changes</a></li>
85
+ <li class="level2"><a href="#moving_hints">Persistent window hints</a></li>
86
+ <li class="level2"><a href="#moving_video_modes">Video mode enumeration</a></li>
87
+ <li class="level2"><a href="#moving_char_up">Removal of character actions</a></li>
88
+ <li class="level2"><a href="#moving_cursorpos">Cursor position changes</a></li>
89
+ <li class="level2"><a href="#moving_wheel">Wheel position replaced by scroll offsets</a></li>
90
+ <li class="level2"><a href="#moving_repeat">Key repeat action</a></li>
91
+ <li class="level2"><a href="#moving_keys">Physical key input</a></li>
92
+ <li class="level2"><a href="#moving_joystick">Joystick function changes</a></li>
93
+ <li class="level2"><a href="#moving_mbcs">Win32 MBCS support</a></li>
94
+ <li class="level2"><a href="#moving_windows">Support for versions of Windows older than XP</a></li>
95
+ <li class="level2"><a href="#moving_syskeys">Capture of system-wide hotkeys</a></li>
96
+ <li class="level2"><a href="#moving_terminate">Automatic termination</a></li>
97
+ <li class="level2"><a href="#moving_glu">GLU header inclusion</a></li>
98
+ </ul>
99
+ </li>
100
+ <li class="level1"><a href="#moving_tables">Name change tables</a><ul><li class="level2"><a href="#moving_renamed_functions">Renamed functions</a></li>
101
+ <li class="level2"><a href="#moving_renamed_types">Renamed types</a></li>
102
+ <li class="level2"><a href="#moving_renamed_tokens">Renamed tokens</a></li>
103
+ </ul>
104
+ </li>
105
+ </ul>
106
+ </div>
107
+ <div class="textblock"><p>This is a transition guide for moving from GLFW 2 to 3. It describes what has changed or been removed, but does <em>not</em> include <a class="el" href="news.html">new features</a> unless they are required when moving an existing code base onto the new API. For example, the new multi-monitor functions are required to create full screen windows with GLFW 3.</p>
108
+ <h1><a class="anchor" id="moving_removed"></a>
109
+ Changed and removed features</h1>
110
+ <h2><a class="anchor" id="moving_renamed_files"></a>
111
+ Renamed library and header file</h2>
112
+ <p>The GLFW 3 header is named <a class="el" href="glfw3_8h.html">glfw3.h</a> and moved to the <code>GLFW</code> directory, to avoid collisions with the headers of other major versions. Similarly, the GLFW 3 library is named <code>glfw3,</code> except when it's installed as a shared library on Unix-like systems, where it uses the <a href="https://en.wikipedia.org/wiki/soname">soname</a> <code>libglfw.so.3</code>.</p>
113
+ <dl class="section user"><dt>Old syntax</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;GL/glfw.h&gt;</span></div>
114
+ </div><!-- fragment --></dd></dl>
115
+ <dl class="section user"><dt>New syntax</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;<a class="code" href="glfw3_8h.html">GLFW/glfw3.h</a>&gt;</span></div>
116
+ <div class="ttc" id="aglfw3_8h_html"><div class="ttname"><a href="glfw3_8h.html">glfw3.h</a></div><div class="ttdoc">The header of the GLFW 3 API.</div></div>
117
+ </div><!-- fragment --></dd></dl>
118
+ <h2><a class="anchor" id="moving_threads"></a>
119
+ Removal of threading functions</h2>
120
+ <p>The threading functions have been removed, including the per-thread sleep function. They were fairly primitive, under-used, poorly integrated and took time away from the focus of GLFW (i.e. context, input and window). There are better threading libraries available and native threading support is available in both <a href="https://en.cppreference.com/w/cpp/thread">C++11</a> and <a href="https://en.cppreference.com/w/c/thread">C11</a>, both of which are gaining traction.</p>
121
+ <p>If you wish to use the C++11 or C11 facilities but your compiler doesn't yet support them, see the <a href="https://gitorious.org/tinythread/tinythreadpp">TinyThread++</a> and <a href="https://github.com/tinycthread/tinycthread">TinyCThread</a> projects created by the original author of GLFW. These libraries implement a usable subset of the threading APIs in C++11 and C11, and in fact some GLFW 3 test programs use TinyCThread.</p>
122
+ <p>However, GLFW 3 has better support for <em>use from multiple threads</em> than GLFW 2 had. Contexts can be made current on any thread, although only a single thread at a time, and the documentation explicitly states which functions may be used from any thread and which must only be used from the main thread.</p>
123
+ <dl class="section user"><dt>Removed functions</dt><dd><code>glfwSleep</code>, <code>glfwCreateThread</code>, <code>glfwDestroyThread</code>, <code>glfwWaitThread</code>, <code>glfwGetThreadID</code>, <code>glfwCreateMutex</code>, <code>glfwDestroyMutex</code>, <code>glfwLockMutex</code>, <code>glfwUnlockMutex</code>, <code>glfwCreateCond</code>, <code>glfwDestroyCond</code>, <code>glfwWaitCond</code>, <code>glfwSignalCond</code>, <code>glfwBroadcastCond</code> and <code>glfwGetNumberOfProcessors</code>.</dd></dl>
124
+ <dl class="section user"><dt>Removed types</dt><dd><code>GLFWthreadfun</code></dd></dl>
125
+ <h2><a class="anchor" id="moving_image"></a>
126
+ Removal of image and texture loading</h2>
127
+ <p>The image and texture loading functions have been removed. They only supported the Targa image format, making them mostly useful for beginner level examples. To become of sufficiently high quality to warrant keeping them in GLFW 3, they would need not only to support other formats, but also modern extensions to OpenGL texturing. This would either add a number of external dependencies (libjpeg, libpng, etc.), or force GLFW to ship with inline versions of these libraries.</p>
128
+ <p>As there already are libraries doing this, it is unnecessary both to duplicate the work and to tie the duplicate to GLFW. The resulting library would also be platform-independent, as both OpenGL and stdio are available wherever GLFW is.</p>
129
+ <dl class="section user"><dt>Removed functions</dt><dd><code>glfwReadImage</code>, <code>glfwReadMemoryImage</code>, <code>glfwFreeImage</code>, <code>glfwLoadTexture2D</code>, <code>glfwLoadMemoryTexture2D</code> and <code>glfwLoadTextureImage2D</code>.</dd></dl>
130
+ <h2><a class="anchor" id="moving_stdcall"></a>
131
+ Removal of GLFWCALL macro</h2>
132
+ <p>The <code>GLFWCALL</code> macro, which made callback functions use <a href="https://msdn.microsoft.com/en-us/library/zxk0tw93.aspx">__stdcall</a> on Windows, has been removed. GLFW is written in C, not Pascal. Removing this macro means there's one less thing for application programmers to remember, i.e. the requirement to mark all callback functions with <code>GLFWCALL</code>. It also simplifies the creation of DLLs and DLL link libraries, as there's no need to explicitly disable <code>@n</code> entry point suffixes.</p>
133
+ <dl class="section user"><dt>Old syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> GLFWCALL callback_function(...);</div>
134
+ </div><!-- fragment --></dd></dl>
135
+ <dl class="section user"><dt>New syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> callback_function(...);</div>
136
+ </div><!-- fragment --></dd></dl>
137
+ <h2><a class="anchor" id="moving_window_handles"></a>
138
+ Window handle parameters</h2>
139
+ <p>Because GLFW 3 supports multiple windows, window handle parameters have been added to all window-related GLFW functions and callbacks. The handle of a newly created window is returned by <a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a> (formerly <code>glfwOpenWindow</code>). Window handles are pointers to the <a href="https://en.wikipedia.org/wiki/Opaque_data_type">opaque</a> type <a class="el" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>.</p>
140
+ <dl class="section user"><dt>Old syntax</dt><dd><div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#ga5d877f09e968cef7a360b513306f17ff">glfwSetWindowTitle</a>(<span class="stringliteral">&quot;New Window Title&quot;</span>);</div>
141
+ <div class="ttc" id="agroup__window_html_ga5d877f09e968cef7a360b513306f17ff"><div class="ttname"><a href="group__window.html#ga5d877f09e968cef7a360b513306f17ff">glfwSetWindowTitle</a></div><div class="ttdeci">void glfwSetWindowTitle(GLFWwindow *window, const char *title)</div><div class="ttdoc">Sets the title of the specified window.</div></div>
142
+ </div><!-- fragment --></dd></dl>
143
+ <dl class="section user"><dt>New syntax</dt><dd><div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#ga5d877f09e968cef7a360b513306f17ff">glfwSetWindowTitle</a>(window, <span class="stringliteral">&quot;New Window Title&quot;</span>);</div>
144
+ </div><!-- fragment --></dd></dl>
145
+ <h2><a class="anchor" id="moving_monitor"></a>
146
+ Explicit monitor selection</h2>
147
+ <p>GLFW 3 provides support for multiple monitors. To request a full screen mode window, instead of passing <code>GLFW_FULLSCREEN</code> you specify which monitor you wish the window to use. The <a class="el" href="group__monitor.html#gac3adb24947eb709e1874028272e5dfc5">glfwGetPrimaryMonitor</a> function returns the monitor that GLFW 2 would have selected, but there are many other <a class="el" href="monitor_guide.html">monitor functions</a>. Monitor handles are pointers to the <a href="https://en.wikipedia.org/wiki/Opaque_data_type">opaque</a> type <a class="el" href="group__monitor.html#ga8d9efd1cde9426692c73fe40437d0ae3">GLFWmonitor</a>.</p>
148
+ <dl class="section user"><dt>Old basic full screen</dt><dd><div class="fragment"><div class="line">glfwOpenWindow(640, 480, 8, 8, 8, 0, 24, 0, GLFW_FULLSCREEN);</div>
149
+ </div><!-- fragment --></dd></dl>
150
+ <dl class="section user"><dt>New basic full screen</dt><dd><div class="fragment"><div class="line">window = <a class="code hl_function" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>(640, 480, <span class="stringliteral">&quot;My Window&quot;</span>, <a class="code hl_function" href="group__monitor.html#gac3adb24947eb709e1874028272e5dfc5">glfwGetPrimaryMonitor</a>(), NULL);</div>
151
+ <div class="ttc" id="agroup__monitor_html_gac3adb24947eb709e1874028272e5dfc5"><div class="ttname"><a href="group__monitor.html#gac3adb24947eb709e1874028272e5dfc5">glfwGetPrimaryMonitor</a></div><div class="ttdeci">GLFWmonitor * glfwGetPrimaryMonitor(void)</div><div class="ttdoc">Returns the primary monitor.</div></div>
152
+ <div class="ttc" id="agroup__window_html_ga3555a418df92ad53f917597fe2f64aeb"><div class="ttname"><a href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a></div><div class="ttdeci">GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)</div><div class="ttdoc">Creates a window and its associated context.</div></div>
153
+ </div><!-- fragment --></dd></dl>
154
+ <dl class="section note"><dt>Note</dt><dd>The framebuffer bit depth parameters of <code>glfwOpenWindow</code> have been turned into <a class="el" href="window_guide.html#window_hints">window hints</a>, but as they have been given <a class="el" href="window_guide.html#window_hints_values">sane defaults</a> you rarely need to set these hints.</dd></dl>
155
+ <h2><a class="anchor" id="moving_autopoll"></a>
156
+ Removal of automatic event polling</h2>
157
+ <p>GLFW 3 does not automatically poll for events in <a class="el" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a>, meaning you need to call <a class="el" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a> or <a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a> yourself. Unlike buffer swap, which acts on a single window, the event processing functions act on all windows at once.</p>
158
+ <dl class="section user"><dt>Old basic main loop</dt><dd><div class="fragment"><div class="line"><span class="keywordflow">while</span> (...)</div>
159
+ <div class="line">{</div>
160
+ <div class="line"> <span class="comment">// Process input</span></div>
161
+ <div class="line"> <span class="comment">// Render output</span></div>
162
+ <div class="line"> <a class="code hl_function" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a>();</div>
163
+ <div class="line">}</div>
164
+ <div class="ttc" id="agroup__window_html_ga15a5a1ee5b3c2ca6b15ca209a12efd14"><div class="ttname"><a href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a></div><div class="ttdeci">void glfwSwapBuffers(GLFWwindow *window)</div><div class="ttdoc">Swaps the front and back buffers of the specified window.</div></div>
165
+ </div><!-- fragment --></dd></dl>
166
+ <dl class="section user"><dt>New basic main loop</dt><dd><div class="fragment"><div class="line"><span class="keywordflow">while</span> (...)</div>
167
+ <div class="line">{</div>
168
+ <div class="line"> <span class="comment">// Process input</span></div>
169
+ <div class="line"> <span class="comment">// Render output</span></div>
170
+ <div class="line"> <a class="code hl_function" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a>(window);</div>
171
+ <div class="line"> <a class="code hl_function" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a>();</div>
172
+ <div class="line">}</div>
173
+ <div class="ttc" id="agroup__window_html_ga37bd57223967b4211d60ca1a0bf3c832"><div class="ttname"><a href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a></div><div class="ttdeci">void glfwPollEvents(void)</div><div class="ttdoc">Processes all pending events.</div></div>
174
+ </div><!-- fragment --></dd></dl>
175
+ <h2><a class="anchor" id="moving_context"></a>
176
+ Explicit context management</h2>
177
+ <p>Each GLFW 3 window has its own OpenGL context and only you, the application programmer, can know which context should be current on which thread at any given time. Therefore, GLFW 3 leaves that decision to you.</p>
178
+ <p>This means that you need to call <a class="el" href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a> after creating a window before you can call any OpenGL functions.</p>
179
+ <h2><a class="anchor" id="moving_hidpi"></a>
180
+ Separation of window and framebuffer sizes</h2>
181
+ <p>Window positions and sizes now use screen coordinates, which may not be the same as pixels on machines with high-DPI monitors. This is important as OpenGL uses pixels, not screen coordinates. For example, the rectangle specified with <code>glViewport</code> needs to use pixels. Therefore, framebuffer size functions have been added. You can retrieve the size of the framebuffer of a window with <a class="el" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a> function. A framebuffer size callback has also been added, which can be set with <a class="el" href="group__window.html#gab3fb7c3366577daef18c0023e2a8591f">glfwSetFramebufferSizeCallback</a>.</p>
182
+ <dl class="section user"><dt>Old basic viewport setup</dt><dd><div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">glfwGetWindowSize</a>(&amp;width, &amp;height);</div>
183
+ <div class="line">glViewport(0, 0, width, height);</div>
184
+ <div class="ttc" id="agroup__window_html_gaeea7cbc03373a41fb51cfbf9f2a5d4c6"><div class="ttname"><a href="group__window.html#gaeea7cbc03373a41fb51cfbf9f2a5d4c6">glfwGetWindowSize</a></div><div class="ttdeci">void glfwGetWindowSize(GLFWwindow *window, int *width, int *height)</div><div class="ttdoc">Retrieves the size of the content area of the specified window.</div></div>
185
+ </div><!-- fragment --></dd></dl>
186
+ <dl class="section user"><dt>New basic viewport setup</dt><dd><div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a>(window, &amp;width, &amp;height);</div>
187
+ <div class="line">glViewport(0, 0, width, height);</div>
188
+ <div class="ttc" id="agroup__window_html_ga0e2637a4161afb283f5300c7f94785c9"><div class="ttname"><a href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a></div><div class="ttdeci">void glfwGetFramebufferSize(GLFWwindow *window, int *width, int *height)</div><div class="ttdoc">Retrieves the size of the framebuffer of the specified window.</div></div>
189
+ </div><!-- fragment --></dd></dl>
190
+ <h2><a class="anchor" id="moving_window_close"></a>
191
+ Window closing changes</h2>
192
+ <p>The <code>GLFW_OPENED</code> window parameter has been removed. As long as the window has not been destroyed, whether through <a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a> or <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>, the window is "open".</p>
193
+ <p>A user attempting to close a window is now just an event like any other. Unlike GLFW 2, windows and contexts created with GLFW 3 will never be destroyed unless you choose them to be. Each window now has a close flag that is set to <code>GLFW_TRUE</code> when the user attempts to close that window. By default, nothing else happens and the window stays visible. It is then up to you to either destroy the window, take some other action or ignore the request.</p>
194
+ <p>You can query the close flag at any time with <a class="el" href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a> and set it at any time with <a class="el" href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a>.</p>
195
+ <dl class="section user"><dt>Old basic main loop</dt><dd><div class="fragment"><div class="line"><span class="keywordflow">while</span> (glfwGetWindowParam(GLFW_OPENED))</div>
196
+ <div class="line">{</div>
197
+ <div class="line"> ...</div>
198
+ <div class="line">}</div>
199
+ </div><!-- fragment --></dd></dl>
200
+ <dl class="section user"><dt>New basic main loop</dt><dd><div class="fragment"><div class="line"><span class="keywordflow">while</span> (!<a class="code hl_function" href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a>(window))</div>
201
+ <div class="line">{</div>
202
+ <div class="line"> ...</div>
203
+ <div class="line">}</div>
204
+ <div class="ttc" id="agroup__window_html_ga24e02fbfefbb81fc45320989f8140ab5"><div class="ttname"><a href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a></div><div class="ttdeci">int glfwWindowShouldClose(GLFWwindow *window)</div><div class="ttdoc">Checks the close flag of the specified window.</div></div>
205
+ </div><!-- fragment --></dd></dl>
206
+ <p>The close callback no longer returns a value. Instead, it is called after the close flag has been set, so it can optionally override its value, before event processing completes. You may however not call <a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a> from the close callback (or any other window related callback).</p>
207
+ <dl class="section user"><dt>Old syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">int</span> GLFWCALL window_close_callback(<span class="keywordtype">void</span>);</div>
208
+ </div><!-- fragment --></dd></dl>
209
+ <dl class="section user"><dt>New syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> window_close_callback(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window);</div>
210
+ <div class="ttc" id="agroup__window_html_ga3c96d80d363e67d13a41b5d1821f3242"><div class="ttname"><a href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a></div><div class="ttdeci">struct GLFWwindow GLFWwindow</div><div class="ttdoc">Opaque window object.</div><div class="ttdef"><b>Definition</b> glfw3.h:1195</div></div>
211
+ </div><!-- fragment --></dd></dl>
212
+ <dl class="section note"><dt>Note</dt><dd>GLFW never clears the close flag to <code>GLFW_FALSE</code>, meaning you can use it for other reasons to close the window as well, for example the user choosing Quit from an in-game menu.</dd></dl>
213
+ <h2><a class="anchor" id="moving_hints"></a>
214
+ Persistent window hints</h2>
215
+ <p>The <code>glfwOpenWindowHint</code> function has been renamed to <a class="el" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a>.</p>
216
+ <p>Window hints are no longer reset to their default values on window creation, but instead retain their values until modified by <a class="el" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a> or <a class="el" href="group__window.html#gaa77c4898dfb83344a6b4f76aa16b9a4a">glfwDefaultWindowHints</a>, or until the library is terminated and re-initialized.</p>
217
+ <h2><a class="anchor" id="moving_video_modes"></a>
218
+ Video mode enumeration</h2>
219
+ <p>Video mode enumeration is now per-monitor. The <a class="el" href="group__monitor.html#gad2e24d2843cb7d6c26202cddd530fc1b">glfwGetVideoModes</a> function now returns all available modes for a specific monitor instead of requiring you to guess how large an array you need. The <code>glfwGetDesktopMode</code> function, which had poorly defined behavior, has been replaced by <a class="el" href="group__monitor.html#gaba376fa7e76634b4788bddc505d6c9d5">glfwGetVideoMode</a>, which returns the current mode of a monitor.</p>
220
+ <h2><a class="anchor" id="moving_char_up"></a>
221
+ Removal of character actions</h2>
222
+ <p>The action parameter of the <a class="el" href="group__input.html#ga1ab90a55cf3f58639b893c0f4118cb6e">character callback</a> has been removed. This was an artefact of the origin of GLFW, i.e. being developed in English by a Swede. However, many keyboard layouts require more than one key to produce characters with diacritical marks. Even the Swedish keyboard layout requires this for uncommon cases like ü.</p>
223
+ <dl class="section user"><dt>Old syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> GLFWCALL character_callback(<span class="keywordtype">int</span> character, <span class="keywordtype">int</span> action);</div>
224
+ </div><!-- fragment --></dd></dl>
225
+ <dl class="section user"><dt>New syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> character_callback(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> character);</div>
226
+ </div><!-- fragment --></dd></dl>
227
+ <h2><a class="anchor" id="moving_cursorpos"></a>
228
+ Cursor position changes</h2>
229
+ <p>The <code>glfwGetMousePos</code> function has been renamed to <a class="el" href="group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc">glfwGetCursorPos</a>, <code>glfwSetMousePos</code> to <a class="el" href="group__input.html#ga04b03af936d906ca123c8f4ee08b39e7">glfwSetCursorPos</a> and <code>glfwSetMousePosCallback</code> to <a class="el" href="group__input.html#gac1f879ab7435d54d4d79bb469fe225d7">glfwSetCursorPosCallback</a>.</p>
230
+ <p>The cursor position is now <code>double</code> instead of <code>int</code>, both for the direct functions and for the callback. Some platforms can provide sub-pixel cursor movement and this data is now passed on to the application where available. On platforms where this is not provided, the decimal part is zero.</p>
231
+ <p>GLFW 3 only allows you to position the cursor within a window using <a class="el" href="group__input.html#ga04b03af936d906ca123c8f4ee08b39e7">glfwSetCursorPos</a> (formerly <code>glfwSetMousePos</code>) when that window is active. Unless the window is active, the function fails silently.</p>
232
+ <h2><a class="anchor" id="moving_wheel"></a>
233
+ Wheel position replaced by scroll offsets</h2>
234
+ <p>The <code>glfwGetMouseWheel</code> function has been removed. Scrolling is the input of offsets and has no absolute position. The mouse wheel callback has been replaced by a <a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">scroll callback</a> that receives two-dimensional floating point scroll offsets. This allows you to receive precise scroll data from for example modern touchpads.</p>
235
+ <dl class="section user"><dt>Old syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> GLFWCALL mouse_wheel_callback(<span class="keywordtype">int</span> position);</div>
236
+ </div><!-- fragment --></dd></dl>
237
+ <dl class="section user"><dt>New syntax</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> scroll_callback(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">double</span> xoffset, <span class="keywordtype">double</span> yoffset);</div>
238
+ </div><!-- fragment --></dd></dl>
239
+ <dl class="section user"><dt>Removed functions</dt><dd><code>glfwGetMouseWheel</code></dd></dl>
240
+ <h2><a class="anchor" id="moving_repeat"></a>
241
+ Key repeat action</h2>
242
+ <p>The <code>GLFW_KEY_REPEAT</code> enable has been removed and key repeat is always enabled for both keys and characters. A new key action, <code>GLFW_REPEAT</code>, has been added to allow the <a class="el" href="group__input.html#ga5bd751b27b90f865d2ea613533f0453c">key callback</a> to distinguish an initial key press from a repeat. Note that <a class="el" href="group__input.html#gadd341da06bc8d418b4dc3a3518af9ad2">glfwGetKey</a> still returns only <code>GLFW_PRESS</code> or <code>GLFW_RELEASE</code>.</p>
243
+ <h2><a class="anchor" id="moving_keys"></a>
244
+ Physical key input</h2>
245
+ <p>GLFW 3 key tokens map to physical keys, unlike in GLFW 2 where they mapped to the values generated by the current keyboard layout. The tokens are named according to the values they would have in the standard US layout, but this is only a convenience, as most programmers are assumed to know that layout. This means that (for example) <code>GLFW_KEY_LEFT_BRACKET</code> is always a single key and is the same key in the same place regardless of what keyboard layouts the users of your program have.</p>
246
+ <p>The key input facility was never meant for text input, although using it that way worked slightly better in GLFW 2. If you were using it to input text, you should be using the character callback instead, on both GLFW 2 and 3. This will give you the characters being input, as opposed to the keys being pressed.</p>
247
+ <p>GLFW 3 has key tokens for all keys on a standard 105 key keyboard, so instead of having to remember whether to check for <code>a</code> or <code>A</code>, you now check for <a class="el" href="group__keys.html#ga03e842608e1ea323370889d33b8f70ff">GLFW_KEY_A</a>.</p>
248
+ <h2><a class="anchor" id="moving_joystick"></a>
249
+ Joystick function changes</h2>
250
+ <p>The <code>glfwGetJoystickPos</code> function has been renamed to <a class="el" href="group__input.html#gaeb1c0191d3140a233a682987c61eb408">glfwGetJoystickAxes</a>.</p>
251
+ <p>The <code>glfwGetJoystickParam</code> function and the <code>GLFW_PRESENT</code>, <code>GLFW_AXES</code> and <code>GLFW_BUTTONS</code> tokens have been replaced by the <a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a> function as well as axis and button counts returned by the <a class="el" href="group__input.html#gaeb1c0191d3140a233a682987c61eb408">glfwGetJoystickAxes</a> and <a class="el" href="group__input.html#ga5ffe34739d3dc97efe432ed2d81d9938">glfwGetJoystickButtons</a> functions.</p>
252
+ <h2><a class="anchor" id="moving_mbcs"></a>
253
+ Win32 MBCS support</h2>
254
+ <p>The Win32 port of GLFW 3 will not compile in <a href="https://msdn.microsoft.com/en-us/library/5z097dxa.aspx">MBCS mode</a>. However, because the use of the Unicode version of the Win32 API doesn't affect the process as a whole, but only those windows created using it, it's perfectly possible to call MBCS functions from other parts of the same application. Therefore, even if an application using GLFW has MBCS mode code, there's no need for GLFW itself to support it.</p>
255
+ <h2><a class="anchor" id="moving_windows"></a>
256
+ Support for versions of Windows older than XP</h2>
257
+ <p>All explicit support for version of Windows older than XP has been removed. There is no code that actively prevents GLFW 3 from running on these earlier versions, but it uses Win32 functions that those versions lack.</p>
258
+ <p>Windows XP was released in 2001, and by now (January 2015) it has not only replaced almost all earlier versions of Windows, but is itself rapidly being replaced by Windows 7 and 8. The MSDN library doesn't even provide documentation for version older than Windows 2000, making it difficult to maintain compatibility with these versions even if it was deemed worth the effort.</p>
259
+ <p>The Win32 API has also not stood still, and GLFW 3 uses many functions only present on Windows XP or later. Even supporting an OS as new as XP (new from the perspective of GLFW 2, which still supports Windows 95) requires runtime checking for a number of functions that are present only on modern version of Windows.</p>
260
+ <h2><a class="anchor" id="moving_syskeys"></a>
261
+ Capture of system-wide hotkeys</h2>
262
+ <p>The ability to disable and capture system-wide hotkeys like Alt+Tab has been removed. Modern applications, whether they're games, scientific visualisations or something else, are nowadays expected to be good desktop citizens and allow these hotkeys to function even when running in full screen mode.</p>
263
+ <h2><a class="anchor" id="moving_terminate"></a>
264
+ Automatic termination</h2>
265
+ <p>GLFW 3 does not register <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> with <code>atexit</code> at initialization, because <code>exit</code> calls registered functions from the calling thread and while it is permitted to call <code>exit</code> from any thread, <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> must only be called from the main thread.</p>
266
+ <p>To release all resources allocated by GLFW, you should call <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> yourself, from the main thread, before the program terminates. Note that this destroys all windows not already destroyed with <a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a>, invalidating any window handles you may still have.</p>
267
+ <h2><a class="anchor" id="moving_glu"></a>
268
+ GLU header inclusion</h2>
269
+ <p>GLFW 3 does not by default include the GLU header and GLU itself has been deprecated by <a href="https://en.wikipedia.org/wiki/Khronos_Group">Khronos</a>. <b>New projects should not use GLU</b>, but if you need it for legacy code that has been moved to GLFW 3, you can request that the GLFW header includes it by defining <a class="el" href="build_guide.html#GLFW_INCLUDE_GLU">GLFW_INCLUDE_GLU</a> before the inclusion of the GLFW header.</p>
270
+ <dl class="section user"><dt>Old syntax</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;GL/glfw.h&gt;</span></div>
271
+ </div><!-- fragment --></dd></dl>
272
+ <dl class="section user"><dt>New syntax</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#define GLFW_INCLUDE_GLU</span></div>
273
+ <div class="line"><span class="preprocessor">#include &lt;<a class="code" href="glfw3_8h.html">GLFW/glfw3.h</a>&gt;</span></div>
274
+ </div><!-- fragment --></dd></dl>
275
+ <p>There are many libraries that offer replacements for the functionality offered by GLU. For the matrix helper functions, see math libraries like <a href="https://github.com/g-truc/glm">GLM</a> (for C++), <a href="https://github.com/datenwolf/linmath.h">linmath.h</a> (for C) and others. For the tessellation functions, see for example <a href="https://github.com/memononen/libtess2">libtess2</a>.</p>
276
+ <h1><a class="anchor" id="moving_tables"></a>
277
+ Name change tables</h1>
278
+ <h2><a class="anchor" id="moving_renamed_functions"></a>
279
+ Renamed functions</h2>
280
+ <table class="markdownTable">
281
+ <tr class="markdownTableHead">
282
+ <th class="markdownTableHeadNone">GLFW 2 </th><th class="markdownTableHeadNone">GLFW 3 </th><th class="markdownTableHeadNone">Notes </th></tr>
283
+ <tr class="markdownTableRowOdd">
284
+ <td class="markdownTableBodyNone"><code>glfwOpenWindow</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a> </td><td class="markdownTableBodyNone">All channel bit depths are now hints </td></tr>
285
+ <tr class="markdownTableRowEven">
286
+ <td class="markdownTableBodyNone"><code>glfwCloseWindow</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a> </td><td class="markdownTableBodyNone"></td></tr>
287
+ <tr class="markdownTableRowOdd">
288
+ <td class="markdownTableBodyNone"><code>glfwOpenWindowHint</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a> </td><td class="markdownTableBodyNone">Now accepts all <code>GLFW_*_BITS</code> tokens </td></tr>
289
+ <tr class="markdownTableRowEven">
290
+ <td class="markdownTableBodyNone"><code>glfwEnable</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#gaa92336e173da9c8834558b54ee80563b">glfwSetInputMode</a> </td><td class="markdownTableBodyNone"></td></tr>
291
+ <tr class="markdownTableRowOdd">
292
+ <td class="markdownTableBodyNone"><code>glfwDisable</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#gaa92336e173da9c8834558b54ee80563b">glfwSetInputMode</a> </td><td class="markdownTableBodyNone"></td></tr>
293
+ <tr class="markdownTableRowEven">
294
+ <td class="markdownTableBodyNone"><code>glfwGetMousePos</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#ga01d37b6c40133676b9cea60ca1d7c0cc">glfwGetCursorPos</a> </td><td class="markdownTableBodyNone"></td></tr>
295
+ <tr class="markdownTableRowOdd">
296
+ <td class="markdownTableBodyNone"><code>glfwSetMousePos</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#ga04b03af936d906ca123c8f4ee08b39e7">glfwSetCursorPos</a> </td><td class="markdownTableBodyNone"></td></tr>
297
+ <tr class="markdownTableRowEven">
298
+ <td class="markdownTableBodyNone"><code>glfwSetMousePosCallback</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#gac1f879ab7435d54d4d79bb469fe225d7">glfwSetCursorPosCallback</a> </td><td class="markdownTableBodyNone"></td></tr>
299
+ <tr class="markdownTableRowOdd">
300
+ <td class="markdownTableBodyNone"><code>glfwSetMouseWheelCallback</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#ga571e45a030ae4061f746ed56cb76aede">glfwSetScrollCallback</a> </td><td class="markdownTableBodyNone">Accepts two-dimensional scroll offsets as doubles </td></tr>
301
+ <tr class="markdownTableRowEven">
302
+ <td class="markdownTableBodyNone"><code>glfwGetJoystickPos</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#gaeb1c0191d3140a233a682987c61eb408">glfwGetJoystickAxes</a> </td><td class="markdownTableBodyNone"></td></tr>
303
+ <tr class="markdownTableRowOdd">
304
+ <td class="markdownTableBodyNone"><code>glfwGetWindowParam</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__window.html#gacccb29947ea4b16860ebef42c2cb9337">glfwGetWindowAttrib</a> </td><td class="markdownTableBodyNone"></td></tr>
305
+ <tr class="markdownTableRowEven">
306
+ <td class="markdownTableBodyNone"><code>glfwGetGLVersion</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__window.html#gacccb29947ea4b16860ebef42c2cb9337">glfwGetWindowAttrib</a> </td><td class="markdownTableBodyNone">Use <code>GLFW_CONTEXT_VERSION_MAJOR</code>, <code>GLFW_CONTEXT_VERSION_MINOR</code> and <code>GLFW_CONTEXT_REVISION</code> </td></tr>
307
+ <tr class="markdownTableRowOdd">
308
+ <td class="markdownTableBodyNone"><code>glfwGetDesktopMode</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__monitor.html#gaba376fa7e76634b4788bddc505d6c9d5">glfwGetVideoMode</a> </td><td class="markdownTableBodyNone">Returns the current mode of a monitor </td></tr>
309
+ <tr class="markdownTableRowEven">
310
+ <td class="markdownTableBodyNone"><code>glfwGetJoystickParam</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#gaed0966cee139d815317f9ffcba64c9f1">glfwJoystickPresent</a> </td><td class="markdownTableBodyNone">The axis and button counts are provided by <a class="el" href="group__input.html#gaeb1c0191d3140a233a682987c61eb408">glfwGetJoystickAxes</a> and <a class="el" href="group__input.html#ga5ffe34739d3dc97efe432ed2d81d9938">glfwGetJoystickButtons</a> </td></tr>
311
+ </table>
312
+ <h2><a class="anchor" id="moving_renamed_types"></a>
313
+ Renamed types</h2>
314
+ <table class="markdownTable">
315
+ <tr class="markdownTableHead">
316
+ <th class="markdownTableHeadNone">GLFW 2 </th><th class="markdownTableHeadNone">GLFW 3 </th><th class="markdownTableHeadNone">Notes </th></tr>
317
+ <tr class="markdownTableRowOdd">
318
+ <td class="markdownTableBodyNone"><code>GLFWmousewheelfun</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#gaf656112c33de3efdb227fa58f0134cf5">GLFWscrollfun</a> </td><td class="markdownTableBodyNone"></td></tr>
319
+ <tr class="markdownTableRowEven">
320
+ <td class="markdownTableBodyNone"><code>GLFWmouseposfun</code> </td><td class="markdownTableBodyNone"><a class="el" href="group__input.html#gad6fae41b3ac2e4209aaa87b596c57f68">GLFWcursorposfun</a> </td><td class="markdownTableBodyNone"></td></tr>
321
+ </table>
322
+ <h2><a class="anchor" id="moving_renamed_tokens"></a>
323
+ Renamed tokens</h2>
324
+ <table class="markdownTable">
325
+ <tr class="markdownTableHead">
326
+ <th class="markdownTableHeadNone">GLFW 2 </th><th class="markdownTableHeadNone">GLFW 3 </th><th class="markdownTableHeadNone">Notes </th></tr>
327
+ <tr class="markdownTableRowOdd">
328
+ <td class="markdownTableBodyNone"><code>GLFW_OPENGL_VERSION_MAJOR</code> </td><td class="markdownTableBodyNone"><code>GLFW_CONTEXT_VERSION_MAJOR</code> </td><td class="markdownTableBodyNone">Renamed as it applies to OpenGL ES as well </td></tr>
329
+ <tr class="markdownTableRowEven">
330
+ <td class="markdownTableBodyNone"><code>GLFW_OPENGL_VERSION_MINOR</code> </td><td class="markdownTableBodyNone"><code>GLFW_CONTEXT_VERSION_MINOR</code> </td><td class="markdownTableBodyNone">Renamed as it applies to OpenGL ES as well </td></tr>
331
+ <tr class="markdownTableRowOdd">
332
+ <td class="markdownTableBodyNone"><code>GLFW_FSAA_SAMPLES</code> </td><td class="markdownTableBodyNone"><code>GLFW_SAMPLES</code> </td><td class="markdownTableBodyNone">Renamed to match the OpenGL API </td></tr>
333
+ <tr class="markdownTableRowEven">
334
+ <td class="markdownTableBodyNone"><code>GLFW_ACTIVE</code> </td><td class="markdownTableBodyNone"><code>GLFW_FOCUSED</code> </td><td class="markdownTableBodyNone">Renamed to match the window focus callback </td></tr>
335
+ <tr class="markdownTableRowOdd">
336
+ <td class="markdownTableBodyNone"><code>GLFW_WINDOW_NO_RESIZE</code> </td><td class="markdownTableBodyNone"><code>GLFW_RESIZABLE</code> </td><td class="markdownTableBodyNone">The default has been inverted </td></tr>
337
+ <tr class="markdownTableRowEven">
338
+ <td class="markdownTableBodyNone"><code>GLFW_MOUSE_CURSOR</code> </td><td class="markdownTableBodyNone"><code>GLFW_CURSOR</code> </td><td class="markdownTableBodyNone">Used with <a class="el" href="group__input.html#gaa92336e173da9c8834558b54ee80563b">glfwSetInputMode</a> </td></tr>
339
+ <tr class="markdownTableRowOdd">
340
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_ESC</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_ESCAPE</code> </td><td class="markdownTableBodyNone"></td></tr>
341
+ <tr class="markdownTableRowEven">
342
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_DEL</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_DELETE</code> </td><td class="markdownTableBodyNone"></td></tr>
343
+ <tr class="markdownTableRowOdd">
344
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_PAGEUP</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_PAGE_UP</code> </td><td class="markdownTableBodyNone"></td></tr>
345
+ <tr class="markdownTableRowEven">
346
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_PAGEDOWN</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_PAGE_DOWN</code> </td><td class="markdownTableBodyNone"></td></tr>
347
+ <tr class="markdownTableRowOdd">
348
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_KP_NUM_LOCK</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_NUM_LOCK</code> </td><td class="markdownTableBodyNone"></td></tr>
349
+ <tr class="markdownTableRowEven">
350
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_LCTRL</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_LEFT_CONTROL</code> </td><td class="markdownTableBodyNone"></td></tr>
351
+ <tr class="markdownTableRowOdd">
352
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_LSHIFT</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_LEFT_SHIFT</code> </td><td class="markdownTableBodyNone"></td></tr>
353
+ <tr class="markdownTableRowEven">
354
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_LALT</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_LEFT_ALT</code> </td><td class="markdownTableBodyNone"></td></tr>
355
+ <tr class="markdownTableRowOdd">
356
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_LSUPER</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_LEFT_SUPER</code> </td><td class="markdownTableBodyNone"></td></tr>
357
+ <tr class="markdownTableRowEven">
358
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_RCTRL</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_RIGHT_CONTROL</code> </td><td class="markdownTableBodyNone"></td></tr>
359
+ <tr class="markdownTableRowOdd">
360
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_RSHIFT</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_RIGHT_SHIFT</code> </td><td class="markdownTableBodyNone"></td></tr>
361
+ <tr class="markdownTableRowEven">
362
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_RALT</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_RIGHT_ALT</code> </td><td class="markdownTableBodyNone"></td></tr>
363
+ <tr class="markdownTableRowOdd">
364
+ <td class="markdownTableBodyNone"><code>GLFW_KEY_RSUPER</code> </td><td class="markdownTableBodyNone"><code>GLFW_KEY_RIGHT_SUPER</code> </td><td class="markdownTableBodyNone"></td></tr>
365
+ </table>
366
+ </div></div><!-- contents -->
367
+ </div><!-- PageDoc -->
368
+ <address class="footer">
369
+ <p>
370
+ Last update on Thu Dec 14 2023 for GLFW 3.3.9
371
+ </p>
372
+ </address>
373
+ </body>
374
+ </html>