ruby_rpg 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -0
- data/glfw-3.3.9.bin.MACOS/LICENSE.md +23 -0
- data/glfw-3.3.9.bin.MACOS/README.md +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/bc_s.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/bc_sd.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/build_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/build_guide.html +199 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/closed.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/compat_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/compat_guide.html +153 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/compile_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/compile_guide.html +223 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/context_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/context_guide.html +259 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/deprecated.html +88 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/dir_08423ce7729c4554356a7de7171ba263.html +85 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/dir_2dcebcdf14b42e92a6ed85c61bda6b9d.html +93 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/dir_62ce056722ee97c199075aa1d6eca309.html +95 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/dir_dddf4cf62655095a666cf715de3a31a2.html +91 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/doc.svg +12 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/docd.svg +12 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/doxygen.css +1685 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/doxygen.svg +28 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/dynsections.js +192 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/extra.css +1 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/files.html +91 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/folderclosed.svg +11 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/folderclosedd.svg +11 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/folderopen.svg +17 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/folderopend.svg +12 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/glfw3_8h.html +1661 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/glfw3_8h_source.html +1175 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/glfw3native_8h.html +167 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/glfw3native_8h_source.html +303 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__buttons.html +282 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__context.html +304 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__errors.html +304 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__gamepad__axes.html +202 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__gamepad__buttons.html +410 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__hat__state.html +234 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__init.html +570 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__input.html +2255 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__joysticks.html +362 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__keys.html +2034 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__mods.html +198 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__monitor.html +848 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__native.html +812 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__shapes.html +198 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__vulkan.html +359 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/group__window.html +3434 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/index.html +100 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/input_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/input_guide.html +570 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/internal_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/internals_guide.html +132 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/intro_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/intro_guide.html +351 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/jquery.js +34 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/main_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/menu.js +136 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/menudata.js +29 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/minus.svg +8 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/minusd.svg +8 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/monitor_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/monitor_guide.html +229 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/moving_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/moving_guide.html +374 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/nav_f.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/nav_fd.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/nav_g.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/nav_h.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/nav_hd.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/news.html +634 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/news_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/open.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/pages.html +99 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/plus.svg +9 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/plusd.svg +9 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/quick_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/quick_guide.html +397 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_0.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_10.js +65 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_11.js +26 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_12.js +44 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_13.js +34 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_14.js +12 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_15.js +52 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_16.js +69 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_17.js +51 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_18.js +14 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_19.js +36 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1a.js +98 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_1b.js +12 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_2.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_3.js +9 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_4.js +57 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_5.js +22 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_6.js +103 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_7.js +23 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_8.js +35 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_9.js +63 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_a.js +505 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_b.js +24 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_c.js +50 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_d.js +17 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_e.js +12 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/all_f.js +35 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/classes_0.js +7 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/close.svg +18 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/defines_0.js +34 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_0.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_1.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_2.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_3.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_4.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_5.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_6.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_7.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/files_8.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/functions_0.js +146 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_0.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_1.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_10.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_2.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_3.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_4.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_5.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_6.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_7.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_8.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_9.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_a.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_b.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_c.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_d.js +7 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_e.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/groups_f.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/mag.svg +24 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_d.svg +24 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_sel.svg +31 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/mag_seld.svg +31 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_0.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_1.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_10.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_2.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_3.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_4.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_5.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_6.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_7.js +7 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_8.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_9.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_a.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_b.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_c.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_d.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_e.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/pages_f.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/search.css +291 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/search.js +840 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/searchdata.js +39 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/typedefs_0.js +32 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_0.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_1.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_2.js +5 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_3.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_4.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_5.js +6 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_6.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/search/variables_7.js +4 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/spaces.svg +877 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/splitbar.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/splitbard.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wgamepadstate.html +134 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wgammaramp.html +170 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wimage.html +151 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/struct_g_l_f_wvidmode.html +204 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/sync_off.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/sync_on.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_a.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_ad.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_b.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_bd.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_h.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_hd.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_s.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tab_sd.png +0 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/tabs.css +1 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/vulkan_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/vulkan_guide.html +196 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/window_8dox.html +81 -0
- data/glfw-3.3.9.bin.MACOS/docs/html/window_guide.html +763 -0
- data/glfw-3.3.9.bin.MACOS/include/GLFW/glfw3.h +5932 -0
- data/glfw-3.3.9.bin.MACOS/include/GLFW/glfw3native.h +634 -0
- data/glfw-3.3.9.bin.MACOS/lib-arm64/libglfw.3.dylib +0 -0
- data/glfw-3.3.9.bin.MACOS/lib-arm64/libglfw3.a +0 -0
- data/glfw-3.3.9.bin.MACOS/lib-universal/libglfw.3.dylib +0 -0
- data/glfw-3.3.9.bin.MACOS/lib-universal/libglfw3.a +0 -0
- data/glfw-3.3.9.bin.MACOS/lib-x86_64/libglfw.3.dylib +0 -0
- data/glfw-3.3.9.bin.MACOS/lib-x86_64/libglfw3.a +0 -0
- data/glfw-3.4.bin.WIN64/LICENSE.md +23 -0
- data/glfw-3.4.bin.WIN64/README.md +70 -0
- data/glfw-3.4.bin.WIN64/docs/html/bc_s.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/bc_sd.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/build_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/build_guide.html +217 -0
- data/glfw-3.4.bin.WIN64/docs/html/closed.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/compat_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/compat_guide.html +156 -0
- data/glfw-3.4.bin.WIN64/docs/html/compile_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/compile_guide.html +219 -0
- data/glfw-3.4.bin.WIN64/docs/html/context_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/context_guide.html +258 -0
- data/glfw-3.4.bin.WIN64/docs/html/deprecated.html +88 -0
- data/glfw-3.4.bin.WIN64/docs/html/dir_13577e2d8b9423099662de029791bd7d.html +93 -0
- data/glfw-3.4.bin.WIN64/docs/html/dir_7f92719a7fe62e5b064f87d7a3c220b1.html +95 -0
- data/glfw-3.4.bin.WIN64/docs/html/dir_a788ef6c2b1e5b367804e0b6ccfd6f11.html +85 -0
- data/glfw-3.4.bin.WIN64/docs/html/dir_b11153cd0f4fd04a7564cc166f482635.html +91 -0
- data/glfw-3.4.bin.WIN64/docs/html/doc.svg +12 -0
- data/glfw-3.4.bin.WIN64/docs/html/docd.svg +12 -0
- data/glfw-3.4.bin.WIN64/docs/html/doxygen.css +1685 -0
- data/glfw-3.4.bin.WIN64/docs/html/doxygen.svg +28 -0
- data/glfw-3.4.bin.WIN64/docs/html/dynsections.js +192 -0
- data/glfw-3.4.bin.WIN64/docs/html/extra.css +2 -0
- data/glfw-3.4.bin.WIN64/docs/html/files.html +91 -0
- data/glfw-3.4.bin.WIN64/docs/html/folderclosed.svg +11 -0
- data/glfw-3.4.bin.WIN64/docs/html/folderclosedd.svg +11 -0
- data/glfw-3.4.bin.WIN64/docs/html/folderopen.svg +17 -0
- data/glfw-3.4.bin.WIN64/docs/html/folderopend.svg +12 -0
- data/glfw-3.4.bin.WIN64/docs/html/glfw3_8h.html +1910 -0
- data/glfw-3.4.bin.WIN64/docs/html/glfw3_8h_source.html +1260 -0
- data/glfw-3.4.bin.WIN64/docs/html/glfw3native_8h.html +170 -0
- data/glfw-3.4.bin.WIN64/docs/html/glfw3native_8h_source.html +306 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__buttons.html +282 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__context.html +304 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__errors.html +384 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__gamepad__axes.html +202 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__gamepad__buttons.html +410 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__hat__state.html +234 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__init.html +1015 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__input.html +2285 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__joysticks.html +362 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__keys.html +2034 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__mods.html +198 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__monitor.html +849 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__native.html +837 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__shapes.html +337 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__vulkan.html +361 -0
- data/glfw-3.4.bin.WIN64/docs/html/group__window.html +3608 -0
- data/glfw-3.4.bin.WIN64/docs/html/index.html +100 -0
- data/glfw-3.4.bin.WIN64/docs/html/input_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/input_guide.html +576 -0
- data/glfw-3.4.bin.WIN64/docs/html/internal_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/internals_guide.html +135 -0
- data/glfw-3.4.bin.WIN64/docs/html/intro_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/intro_guide.html +429 -0
- data/glfw-3.4.bin.WIN64/docs/html/jquery.js +34 -0
- data/glfw-3.4.bin.WIN64/docs/html/main_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/menu.js +136 -0
- data/glfw-3.4.bin.WIN64/docs/html/menudata.js +30 -0
- data/glfw-3.4.bin.WIN64/docs/html/minus.svg +8 -0
- data/glfw-3.4.bin.WIN64/docs/html/minusd.svg +8 -0
- data/glfw-3.4.bin.WIN64/docs/html/monitor_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/monitor_guide.html +228 -0
- data/glfw-3.4.bin.WIN64/docs/html/moving_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/moving_guide.html +360 -0
- data/glfw-3.4.bin.WIN64/docs/html/nav_f.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/nav_fd.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/nav_g.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/nav_h.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/nav_hd.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/news.html +336 -0
- data/glfw-3.4.bin.WIN64/docs/html/news_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/open.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/pages.html +99 -0
- data/glfw-3.4.bin.WIN64/docs/html/plus.svg +9 -0
- data/glfw-3.4.bin.WIN64/docs/html/plusd.svg +9 -0
- data/glfw-3.4.bin.WIN64/docs/html/quick_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/quick_guide.html +406 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_0.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_1.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_10.js +13 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_11.js +11 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_12.js +26 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_13.js +51 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_14.js +22 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_15.js +35 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_16.js +29 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_17.js +8 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_18.js +44 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_19.js +60 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_1a.js +39 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_1b.js +8 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_1c.js +32 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_1d.js +84 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_1e.js +13 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_1f.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_2.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_3.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_4.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_5.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_6.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_7.js +58 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_8.js +21 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_9.js +82 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_a.js +20 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_b.js +26 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_c.js +35 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_d.js +555 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_e.js +23 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/all_f.js +40 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/classes_0.js +8 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/close.svg +18 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/defines_0.js +43 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_0.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_1.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_2.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_3.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_4.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_5.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_6.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_7.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/files_8.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/functions_0.js +152 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_0.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_1.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_10.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_2.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_3.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_4.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_5.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_6.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_7.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_8.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_9.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_a.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_b.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_c.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_d.js +7 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_e.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/groups_f.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/mag.svg +24 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/mag_d.svg +24 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/mag_sel.svg +31 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/mag_seld.svg +31 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_0.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_1.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_10.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_11.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_2.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_3.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_4.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_5.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_6.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_7.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_8.js +7 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_9.js +7 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_a.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_b.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_c.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_d.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_e.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/pages_f.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/search.css +291 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/search.js +840 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/searchdata.js +39 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/typedefs_0.js +36 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_0.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_1.js +6 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_2.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_3.js +5 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_4.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_5.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_6.js +7 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_7.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_8.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/search/variables_9.js +4 -0
- data/glfw-3.4.bin.WIN64/docs/html/spaces.svg +877 -0
- data/glfw-3.4.bin.WIN64/docs/html/splitbar.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/splitbard.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wallocator.html +168 -0
- data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wgamepadstate.html +134 -0
- data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wgammaramp.html +170 -0
- data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wimage.html +151 -0
- data/glfw-3.4.bin.WIN64/docs/html/struct_g_l_f_wvidmode.html +204 -0
- data/glfw-3.4.bin.WIN64/docs/html/sync_off.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/sync_on.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_a.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_ad.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_b.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_bd.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_h.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_hd.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_s.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tab_sd.png +0 -0
- data/glfw-3.4.bin.WIN64/docs/html/tabs.css +1 -0
- data/glfw-3.4.bin.WIN64/docs/html/topics.html +101 -0
- data/glfw-3.4.bin.WIN64/docs/html/vulkan_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/vulkan_guide.html +206 -0
- data/glfw-3.4.bin.WIN64/docs/html/window_8md.html +81 -0
- data/glfw-3.4.bin.WIN64/docs/html/window_guide.html +806 -0
- data/glfw-3.4.bin.WIN64/include/GLFW/glfw3.h +6547 -0
- data/glfw-3.4.bin.WIN64/include/GLFW/glfw3native.h +663 -0
- data/glfw-3.4.bin.WIN64/lib-mingw-w64/glfw3.dll +0 -0
- data/glfw-3.4.bin.WIN64/lib-mingw-w64/libglfw3.a +0 -0
- data/glfw-3.4.bin.WIN64/lib-mingw-w64/libglfw3dll.a +0 -0
- data/glfw-3.4.bin.WIN64/lib-static-ucrt/glfw3.dll +0 -0
- data/glfw-3.4.bin.WIN64/lib-static-ucrt/glfw3dll.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3.dll +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3_mt.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2013/glfw3dll.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3.dll +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3_mt.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2015/glfw3dll.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3.dll +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3_mt.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2017/glfw3dll.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3.dll +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3_mt.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2019/glfw3dll.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3.dll +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3_mt.lib +0 -0
- data/glfw-3.4.bin.WIN64/lib-vc2022/glfw3dll.lib +0 -0
- data/lib/build.bash +12 -0
- data/lib/engine/camera.rb +13 -0
- data/lib/engine/component.rb +48 -0
- data/lib/engine/components/direction_light.rb +23 -0
- data/lib/engine/components/font_renderer.rb +134 -0
- data/lib/engine/components/mesh_renderer.rb +31 -0
- data/lib/engine/components/orthographic_camera.rb +54 -0
- data/lib/engine/components/perspective_camera.rb +53 -0
- data/lib/engine/components/point_light.rb +24 -0
- data/lib/engine/components/sprite_renderer.rb +141 -0
- data/lib/engine/components/ui_font_renderer.rb +140 -0
- data/lib/engine/components/ui_sprite_renderer.rb +101 -0
- data/lib/engine/cursor.rb +43 -0
- data/lib/engine/engine.rb +221 -0
- data/lib/engine/font.rb +74 -0
- data/lib/engine/game_object.rb +198 -0
- data/lib/engine/importers/font_importer.rb +69 -0
- data/lib/engine/importers/obj_file.rb +244 -0
- data/lib/engine/importers/obj_importer.rb +33 -0
- data/lib/engine/input.rb +61 -0
- data/lib/engine/material.rb +79 -0
- data/lib/engine/mesh.rb +43 -0
- data/lib/engine/path.rb +92 -0
- data/lib/engine/physics/collision.rb +12 -0
- data/lib/engine/physics/components/cube_collider.rb +6 -0
- data/lib/engine/physics/components/rigidbody.rb +103 -0
- data/lib/engine/physics/components/sphere_collider.rb +93 -0
- data/lib/engine/physics/physics_resolver.rb +37 -0
- data/lib/engine/polygon_mesh.rb +45 -0
- data/lib/engine/quaternion.rb +228 -0
- data/lib/engine/rendering/instance_renderer.rb +153 -0
- data/lib/engine/rendering/render_pipeline.rb +35 -0
- data/lib/engine/screenshoter.rb +34 -0
- data/lib/engine/shader.rb +91 -0
- data/lib/engine/shaders/colour_frag.glsl +9 -0
- data/lib/engine/shaders/colour_vertex.glsl +14 -0
- data/lib/engine/shaders/mesh_frag.glsl +102 -0
- data/lib/engine/shaders/mesh_vertex.glsl +25 -0
- data/lib/engine/shaders/skybox_frag.glsl +12 -0
- data/lib/engine/shaders/skybox_vert.glsl +14 -0
- data/lib/engine/shaders/sprite_frag.glsl +17 -0
- data/lib/engine/shaders/sprite_vertex.glsl +16 -0
- data/lib/engine/shaders/text_frag.glsl +15 -0
- data/lib/engine/shaders/text_vertex.glsl +31 -0
- data/lib/engine/shaders/ui_sprite_frag.glsl +15 -0
- data/lib/engine/shaders/ui_sprite_vertex.glsl +16 -0
- data/lib/engine/shaders/vertex_lit_frag.glsl +89 -0
- data/lib/engine/shaders/vertex_lit_vertex.glsl +28 -0
- data/lib/engine/tangent_calculator.rb +42 -0
- data/lib/engine/texture.rb +52 -0
- data/lib/engine/video_mode.rb +37 -0
- data/lib/engine/window.rb +126 -0
- metadata +482 -1
@@ -0,0 +1,1015 @@
|
|
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: Initialization, version and error reference</title>
|
9
|
+
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
10
|
+
<script type="text/javascript" src="jquery.js"></script>
|
11
|
+
<script type="text/javascript" src="dynsections.js"></script>
|
12
|
+
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
13
|
+
<script type="text/javascript" src="search/searchdata.js"></script>
|
14
|
+
<script type="text/javascript" src="search/search.js"></script>
|
15
|
+
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
16
|
+
<link href="extra.css" rel="stylesheet" type="text/css"/>
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
20
|
+
<div id="titlearea">
|
21
|
+
<div class="glfwheader">
|
22
|
+
<a href="https://www.glfw.org/" id="glfwhome">GLFW</a>
|
23
|
+
<ul class="glfwnavbar">
|
24
|
+
<li><a href="https://www.glfw.org/documentation.html">Documentation</a></li>
|
25
|
+
<li><a href="https://www.glfw.org/download.html">Download</a></li>
|
26
|
+
<li><a href="https://www.glfw.org/community.html">Community</a></li>
|
27
|
+
</ul>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<!-- end header part -->
|
31
|
+
<!-- Generated by Doxygen 1.9.8 -->
|
32
|
+
<script type="text/javascript">
|
33
|
+
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&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&dn=expat.txt MIT */
|
41
|
+
$(function() {
|
42
|
+
initMenu('',true,false,'search.php','Search');
|
43
|
+
$(document).ready(function() { init_search(); });
|
44
|
+
});
|
45
|
+
/* @license-end */
|
46
|
+
</script>
|
47
|
+
<div id="main-nav"></div>
|
48
|
+
</div><!-- top -->
|
49
|
+
<!-- window showing the filter options -->
|
50
|
+
<div id="MSearchSelectWindow"
|
51
|
+
onmouseover="return searchBox.OnSearchSelectShow()"
|
52
|
+
onmouseout="return searchBox.OnSearchSelectHide()"
|
53
|
+
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
54
|
+
</div>
|
55
|
+
|
56
|
+
<!-- iframe showing the search results (closed by default) -->
|
57
|
+
<div id="MSearchResultsWindow">
|
58
|
+
<div id="MSearchResults">
|
59
|
+
<div class="SRPage">
|
60
|
+
<div id="SRIndex">
|
61
|
+
<div id="SRResults"></div>
|
62
|
+
<div class="SRStatus" id="Loading">Loading...</div>
|
63
|
+
<div class="SRStatus" id="Searching">Searching...</div>
|
64
|
+
<div class="SRStatus" id="NoMatches">No Matches</div>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
</div>
|
69
|
+
|
70
|
+
<div class="header">
|
71
|
+
<div class="summary">
|
72
|
+
<a href="#groups">Modules</a> |
|
73
|
+
<a href="#define-members">Macros</a> |
|
74
|
+
<a href="#typedef-members">Typedefs</a> |
|
75
|
+
<a href="#func-members">Functions</a> </div>
|
76
|
+
<div class="headertitle"><div class="title">Initialization, version and error reference</div></div>
|
77
|
+
</div><!--header-->
|
78
|
+
<div class="contents">
|
79
|
+
<a name="details" id="details"></a><h2 class="groupheader">Description</h2>
|
80
|
+
<p>This is the reference documentation for initialization and termination of the library, version management and error handling. For more task-oriented information, see the <a class="el" href="intro_guide.html">Introduction to the API</a>. </p>
|
81
|
+
<table class="memberdecls">
|
82
|
+
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="groups" name="groups"></a>
|
83
|
+
Modules</h2></td></tr>
|
84
|
+
<tr class="memitem:group__errors" id="r_group__errors"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__errors.html">Error codes</a></td></tr>
|
85
|
+
<tr class="memdesc:group__errors"><td class="mdescLeft"> </td><td class="mdescRight">Error codes. <br /></td></tr>
|
86
|
+
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
87
|
+
</table><table class="memberdecls">
|
88
|
+
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="define-members" name="define-members"></a>
|
89
|
+
Macros</h2></td></tr>
|
90
|
+
<tr class="memitem:ga2744fbb29b5631bb28802dbe0cf36eba" id="r_ga2744fbb29b5631bb28802dbe0cf36eba"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba">GLFW_TRUE</a>   1</td></tr>
|
91
|
+
<tr class="memdesc:ga2744fbb29b5631bb28802dbe0cf36eba"><td class="mdescLeft"> </td><td class="mdescRight">One. <br /></td></tr>
|
92
|
+
<tr class="separator:ga2744fbb29b5631bb28802dbe0cf36eba"><td class="memSeparator" colspan="2"> </td></tr>
|
93
|
+
<tr class="memitem:gac877fe3b627d21ef3a0a23e0a73ba8c5" id="r_gac877fe3b627d21ef3a0a23e0a73ba8c5"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gac877fe3b627d21ef3a0a23e0a73ba8c5">GLFW_FALSE</a>   0</td></tr>
|
94
|
+
<tr class="memdesc:gac877fe3b627d21ef3a0a23e0a73ba8c5"><td class="mdescLeft"> </td><td class="mdescRight">Zero. <br /></td></tr>
|
95
|
+
<tr class="separator:gac877fe3b627d21ef3a0a23e0a73ba8c5"><td class="memSeparator" colspan="2"> </td></tr>
|
96
|
+
<tr class="memitem:gab9c0534709fda03ec8959201da3a9a18" id="r_gab9c0534709fda03ec8959201da3a9a18"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gab9c0534709fda03ec8959201da3a9a18">GLFW_JOYSTICK_HAT_BUTTONS</a>   0x00050001</td></tr>
|
97
|
+
<tr class="memdesc:gab9c0534709fda03ec8959201da3a9a18"><td class="mdescLeft"> </td><td class="mdescRight">Joystick hat buttons init hint. <br /></td></tr>
|
98
|
+
<tr class="separator:gab9c0534709fda03ec8959201da3a9a18"><td class="memSeparator" colspan="2"> </td></tr>
|
99
|
+
<tr class="memitem:gaec269b24cf549ab46292c0125d8bbdce" id="r_gaec269b24cf549ab46292c0125d8bbdce"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gaec269b24cf549ab46292c0125d8bbdce">GLFW_ANGLE_PLATFORM_TYPE</a>   0x00050002</td></tr>
|
100
|
+
<tr class="memdesc:gaec269b24cf549ab46292c0125d8bbdce"><td class="mdescLeft"> </td><td class="mdescRight">ANGLE rendering backend init hint. <br /></td></tr>
|
101
|
+
<tr class="separator:gaec269b24cf549ab46292c0125d8bbdce"><td class="memSeparator" colspan="2"> </td></tr>
|
102
|
+
<tr class="memitem:ga9d38bf1fdf4f91d6565401734a7cd967" id="r_ga9d38bf1fdf4f91d6565401734a7cd967"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga9d38bf1fdf4f91d6565401734a7cd967">GLFW_PLATFORM</a>   0x00050003</td></tr>
|
103
|
+
<tr class="memdesc:ga9d38bf1fdf4f91d6565401734a7cd967"><td class="mdescLeft"> </td><td class="mdescRight">Platform selection init hint. <br /></td></tr>
|
104
|
+
<tr class="separator:ga9d38bf1fdf4f91d6565401734a7cd967"><td class="memSeparator" colspan="2"> </td></tr>
|
105
|
+
<tr class="memitem:gab937983147a3158d45f88fad7129d9f2" id="r_gab937983147a3158d45f88fad7129d9f2"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gab937983147a3158d45f88fad7129d9f2">GLFW_COCOA_CHDIR_RESOURCES</a>   0x00051001</td></tr>
|
106
|
+
<tr class="memdesc:gab937983147a3158d45f88fad7129d9f2"><td class="mdescLeft"> </td><td class="mdescRight">macOS specific init hint. <br /></td></tr>
|
107
|
+
<tr class="separator:gab937983147a3158d45f88fad7129d9f2"><td class="memSeparator" colspan="2"> </td></tr>
|
108
|
+
<tr class="memitem:ga71e0b4ce2f2696a84a9b8c5e12dc70cf" id="r_ga71e0b4ce2f2696a84a9b8c5e12dc70cf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">GLFW_COCOA_MENUBAR</a>   0x00051002</td></tr>
|
109
|
+
<tr class="memdesc:ga71e0b4ce2f2696a84a9b8c5e12dc70cf"><td class="mdescLeft"> </td><td class="mdescRight">macOS specific init hint. <br /></td></tr>
|
110
|
+
<tr class="separator:ga71e0b4ce2f2696a84a9b8c5e12dc70cf"><td class="memSeparator" colspan="2"> </td></tr>
|
111
|
+
<tr class="memitem:gaa341e303ebeb8e4199b8ab8be84351f6" id="r_gaa341e303ebeb8e4199b8ab8be84351f6"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gaa341e303ebeb8e4199b8ab8be84351f6">GLFW_X11_XCB_VULKAN_SURFACE</a>   0x00052001</td></tr>
|
112
|
+
<tr class="memdesc:gaa341e303ebeb8e4199b8ab8be84351f6"><td class="mdescLeft"> </td><td class="mdescRight">X11 specific init hint. <br /></td></tr>
|
113
|
+
<tr class="separator:gaa341e303ebeb8e4199b8ab8be84351f6"><td class="memSeparator" colspan="2"> </td></tr>
|
114
|
+
<tr class="memitem:ga2a3f2fd7695902c498b050215b3db452" id="r_ga2a3f2fd7695902c498b050215b3db452"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga2a3f2fd7695902c498b050215b3db452">GLFW_WAYLAND_LIBDECOR</a>   0x00053001</td></tr>
|
115
|
+
<tr class="memdesc:ga2a3f2fd7695902c498b050215b3db452"><td class="mdescLeft"> </td><td class="mdescRight">Wayland specific init hint. <br /></td></tr>
|
116
|
+
<tr class="separator:ga2a3f2fd7695902c498b050215b3db452"><td class="memSeparator" colspan="2"> </td></tr>
|
117
|
+
<tr class="memitem:ga18b2d37374d0dea28cd69194fa85b859" id="r_ga18b2d37374d0dea28cd69194fa85b859"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga18b2d37374d0dea28cd69194fa85b859">GLFW_ANY_PLATFORM</a>   0x00060000</td></tr>
|
118
|
+
<tr class="memdesc:ga18b2d37374d0dea28cd69194fa85b859"><td class="mdescLeft"> </td><td class="mdescRight">Hint value that enables automatic platform selection. <br /></td></tr>
|
119
|
+
<tr class="separator:ga18b2d37374d0dea28cd69194fa85b859"><td class="memSeparator" colspan="2"> </td></tr>
|
120
|
+
<tr class="memitem:ga8d3d17df2ab57492cef665da52c603a1" id="r_ga8d3d17df2ab57492cef665da52c603a1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga8d3d17df2ab57492cef665da52c603a1">GLFW_PLATFORM_WIN32</a>   0x00060001</td></tr>
|
121
|
+
<tr class="separator:ga8d3d17df2ab57492cef665da52c603a1"><td class="memSeparator" colspan="2"> </td></tr>
|
122
|
+
<tr class="memitem:ga83b18714254f75bc2f0cdbafa0f10b6b" id="r_ga83b18714254f75bc2f0cdbafa0f10b6b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga83b18714254f75bc2f0cdbafa0f10b6b">GLFW_PLATFORM_COCOA</a>   0x00060002</td></tr>
|
123
|
+
<tr class="separator:ga83b18714254f75bc2f0cdbafa0f10b6b"><td class="memSeparator" colspan="2"> </td></tr>
|
124
|
+
<tr class="memitem:gac4b08906a3cbf26c518a4a543eedd740" id="r_gac4b08906a3cbf26c518a4a543eedd740"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gac4b08906a3cbf26c518a4a543eedd740">GLFW_PLATFORM_WAYLAND</a>   0x00060003</td></tr>
|
125
|
+
<tr class="separator:gac4b08906a3cbf26c518a4a543eedd740"><td class="memSeparator" colspan="2"> </td></tr>
|
126
|
+
<tr class="memitem:gaf5333f3933e9c248a00cfda6523f386b" id="r_gaf5333f3933e9c248a00cfda6523f386b"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gaf5333f3933e9c248a00cfda6523f386b">GLFW_PLATFORM_X11</a>   0x00060004</td></tr>
|
127
|
+
<tr class="separator:gaf5333f3933e9c248a00cfda6523f386b"><td class="memSeparator" colspan="2"> </td></tr>
|
128
|
+
<tr class="memitem:gac06fad5a4866ae7a1d7b2675fac72d7f" id="r_gac06fad5a4866ae7a1d7b2675fac72d7f"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gac06fad5a4866ae7a1d7b2675fac72d7f">GLFW_PLATFORM_NULL</a>   0x00060005</td></tr>
|
129
|
+
<tr class="separator:gac06fad5a4866ae7a1d7b2675fac72d7f"><td class="memSeparator" colspan="2"> </td></tr>
|
130
|
+
</table><table class="memberdecls">
|
131
|
+
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
|
132
|
+
Typedefs</h2></td></tr>
|
133
|
+
<tr class="memitem:ga4306a564e9f60f4de8cc8f31731a3120" id="r_ga4306a564e9f60f4de8cc8f31731a3120"><td class="memItemLeft" align="right" valign="top">typedef void *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga4306a564e9f60f4de8cc8f31731a3120">GLFWallocatefun</a>) (size_t size, void *user)</td></tr>
|
134
|
+
<tr class="memdesc:ga4306a564e9f60f4de8cc8f31731a3120"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for memory allocation callbacks. <br /></td></tr>
|
135
|
+
<tr class="separator:ga4306a564e9f60f4de8cc8f31731a3120"><td class="memSeparator" colspan="2"> </td></tr>
|
136
|
+
<tr class="memitem:ga3e88a829615d8efe8bec1746f7309c63" id="r_ga3e88a829615d8efe8bec1746f7309c63"><td class="memItemLeft" align="right" valign="top">typedef void *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga3e88a829615d8efe8bec1746f7309c63">GLFWreallocatefun</a>) (void *block, size_t size, void *user)</td></tr>
|
137
|
+
<tr class="memdesc:ga3e88a829615d8efe8bec1746f7309c63"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for memory reallocation callbacks. <br /></td></tr>
|
138
|
+
<tr class="separator:ga3e88a829615d8efe8bec1746f7309c63"><td class="memSeparator" colspan="2"> </td></tr>
|
139
|
+
<tr class="memitem:ga7181615eda94c4b07bd72bdcee39fa28" id="r_ga7181615eda94c4b07bd72bdcee39fa28"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga7181615eda94c4b07bd72bdcee39fa28">GLFWdeallocatefun</a>) (void *block, void *user)</td></tr>
|
140
|
+
<tr class="memdesc:ga7181615eda94c4b07bd72bdcee39fa28"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for memory deallocation callbacks. <br /></td></tr>
|
141
|
+
<tr class="separator:ga7181615eda94c4b07bd72bdcee39fa28"><td class="memSeparator" colspan="2"> </td></tr>
|
142
|
+
<tr class="memitem:ga8184701785c096b3862a75cda1bf44a3" id="r_ga8184701785c096b3862a75cda1bf44a3"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a>) (int error_code, const char *description)</td></tr>
|
143
|
+
<tr class="memdesc:ga8184701785c096b3862a75cda1bf44a3"><td class="mdescLeft"> </td><td class="mdescRight">The function pointer type for error callbacks. <br /></td></tr>
|
144
|
+
<tr class="separator:ga8184701785c096b3862a75cda1bf44a3"><td class="memSeparator" colspan="2"> </td></tr>
|
145
|
+
<tr class="memitem:ga145c57d7f2aeda0b704a5a4ba1d6104b" id="r_ga145c57d7f2aeda0b704a5a4ba1d6104b"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga145c57d7f2aeda0b704a5a4ba1d6104b">GLFWallocator</a></td></tr>
|
146
|
+
<tr class="memdesc:ga145c57d7f2aeda0b704a5a4ba1d6104b"><td class="mdescLeft"> </td><td class="mdescRight">Custom heap memory allocator. <br /></td></tr>
|
147
|
+
<tr class="separator:ga145c57d7f2aeda0b704a5a4ba1d6104b"><td class="memSeparator" colspan="2"> </td></tr>
|
148
|
+
</table><table class="memberdecls">
|
149
|
+
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
150
|
+
Functions</h2></td></tr>
|
151
|
+
<tr class="memitem:ga317aac130a235ab08c6db0834907d85e" id="r_ga317aac130a235ab08c6db0834907d85e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> (void)</td></tr>
|
152
|
+
<tr class="memdesc:ga317aac130a235ab08c6db0834907d85e"><td class="mdescLeft"> </td><td class="mdescRight">Initializes the GLFW library. <br /></td></tr>
|
153
|
+
<tr class="separator:ga317aac130a235ab08c6db0834907d85e"><td class="memSeparator" colspan="2"> </td></tr>
|
154
|
+
<tr class="memitem:gaaae48c0a18607ea4a4ba951d939f0901" id="r_gaaae48c0a18607ea4a4ba951d939f0901"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> (void)</td></tr>
|
155
|
+
<tr class="memdesc:gaaae48c0a18607ea4a4ba951d939f0901"><td class="mdescLeft"> </td><td class="mdescRight">Terminates the GLFW library. <br /></td></tr>
|
156
|
+
<tr class="separator:gaaae48c0a18607ea4a4ba951d939f0901"><td class="memSeparator" colspan="2"> </td></tr>
|
157
|
+
<tr class="memitem:ga110fd1d3f0412822b4f1908c026f724a" id="r_ga110fd1d3f0412822b4f1908c026f724a"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a> (int hint, int value)</td></tr>
|
158
|
+
<tr class="memdesc:ga110fd1d3f0412822b4f1908c026f724a"><td class="mdescLeft"> </td><td class="mdescRight">Sets the specified init hint to the desired value. <br /></td></tr>
|
159
|
+
<tr class="separator:ga110fd1d3f0412822b4f1908c026f724a"><td class="memSeparator" colspan="2"> </td></tr>
|
160
|
+
<tr class="memitem:ga9dde93e9891fa7dd17e4194c9f3ae7c6" id="r_ga9dde93e9891fa7dd17e4194c9f3ae7c6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a> (const <a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a> *allocator)</td></tr>
|
161
|
+
<tr class="memdesc:ga9dde93e9891fa7dd17e4194c9f3ae7c6"><td class="mdescLeft"> </td><td class="mdescRight">Sets the init allocator to the desired value. <br /></td></tr>
|
162
|
+
<tr class="separator:ga9dde93e9891fa7dd17e4194c9f3ae7c6"><td class="memSeparator" colspan="2"> </td></tr>
|
163
|
+
<tr class="memitem:ga76af552d0307bb5f7791f245417d4752" id="r_ga76af552d0307bb5f7791f245417d4752"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga76af552d0307bb5f7791f245417d4752">glfwInitVulkanLoader</a> (PFN_vkGetInstanceProcAddr loader)</td></tr>
|
164
|
+
<tr class="memdesc:ga76af552d0307bb5f7791f245417d4752"><td class="mdescLeft"> </td><td class="mdescRight">Sets the desired Vulkan <code>vkGetInstanceProcAddr</code> function. <br /></td></tr>
|
165
|
+
<tr class="separator:ga76af552d0307bb5f7791f245417d4752"><td class="memSeparator" colspan="2"> </td></tr>
|
166
|
+
<tr class="memitem:ga9f8ffaacf3c269cc48eafbf8b9b71197" id="r_ga9f8ffaacf3c269cc48eafbf8b9b71197"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a> (int *major, int *minor, int *rev)</td></tr>
|
167
|
+
<tr class="memdesc:ga9f8ffaacf3c269cc48eafbf8b9b71197"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the version of the GLFW library. <br /></td></tr>
|
168
|
+
<tr class="separator:ga9f8ffaacf3c269cc48eafbf8b9b71197"><td class="memSeparator" colspan="2"> </td></tr>
|
169
|
+
<tr class="memitem:ga026abd003c8e6501981ab1662062f1c0" id="r_ga026abd003c8e6501981ab1662062f1c0"><td class="memItemLeft" align="right" valign="top">const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">glfwGetVersionString</a> (void)</td></tr>
|
170
|
+
<tr class="memdesc:ga026abd003c8e6501981ab1662062f1c0"><td class="mdescLeft"> </td><td class="mdescRight">Returns a string describing the compile-time configuration. <br /></td></tr>
|
171
|
+
<tr class="separator:ga026abd003c8e6501981ab1662062f1c0"><td class="memSeparator" colspan="2"> </td></tr>
|
172
|
+
<tr class="memitem:ga944986b4ec0b928d488141f92982aa18" id="r_ga944986b4ec0b928d488141f92982aa18"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a> (const char **description)</td></tr>
|
173
|
+
<tr class="memdesc:ga944986b4ec0b928d488141f92982aa18"><td class="mdescLeft"> </td><td class="mdescRight">Returns and clears the last error for the calling thread. <br /></td></tr>
|
174
|
+
<tr class="separator:ga944986b4ec0b928d488141f92982aa18"><td class="memSeparator" colspan="2"> </td></tr>
|
175
|
+
<tr class="memitem:gaff45816610d53f0b83656092a4034f40" id="r_gaff45816610d53f0b83656092a4034f40"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a> (<a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> callback)</td></tr>
|
176
|
+
<tr class="memdesc:gaff45816610d53f0b83656092a4034f40"><td class="mdescLeft"> </td><td class="mdescRight">Sets the error callback. <br /></td></tr>
|
177
|
+
<tr class="separator:gaff45816610d53f0b83656092a4034f40"><td class="memSeparator" colspan="2"> </td></tr>
|
178
|
+
<tr class="memitem:ga6d6a983d38bd4e8fd786d7a9061d399e" id="r_ga6d6a983d38bd4e8fd786d7a9061d399e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga6d6a983d38bd4e8fd786d7a9061d399e">glfwGetPlatform</a> (void)</td></tr>
|
179
|
+
<tr class="memdesc:ga6d6a983d38bd4e8fd786d7a9061d399e"><td class="mdescLeft"> </td><td class="mdescRight">Returns the currently selected platform. <br /></td></tr>
|
180
|
+
<tr class="separator:ga6d6a983d38bd4e8fd786d7a9061d399e"><td class="memSeparator" colspan="2"> </td></tr>
|
181
|
+
<tr class="memitem:ga8785d2b6b36632368d803e78079d38ed" id="r_ga8785d2b6b36632368d803e78079d38ed"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a> (int platform)</td></tr>
|
182
|
+
<tr class="memdesc:ga8785d2b6b36632368d803e78079d38ed"><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the library includes support for the specified platform. <br /></td></tr>
|
183
|
+
<tr class="separator:ga8785d2b6b36632368d803e78079d38ed"><td class="memSeparator" colspan="2"> </td></tr>
|
184
|
+
</table>
|
185
|
+
<h2 class="groupheader">Macro Definition Documentation</h2>
|
186
|
+
<a id="ga6337d9ea43b22fc529b2bba066b4a576" name="ga6337d9ea43b22fc529b2bba066b4a576"></a>
|
187
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga6337d9ea43b22fc529b2bba066b4a576">◆ </a></span>GLFW_VERSION_MAJOR</h2>
|
188
|
+
|
189
|
+
<div class="memitem">
|
190
|
+
<div class="memproto">
|
191
|
+
<table class="memname">
|
192
|
+
<tr>
|
193
|
+
<td class="memname">#define GLFW_VERSION_MAJOR   3</td>
|
194
|
+
</tr>
|
195
|
+
</table>
|
196
|
+
</div><div class="memdoc">
|
197
|
+
<p>The major version number of the GLFW header. This is incremented when the API is changed in non-compatible ways. </p>
|
198
|
+
|
199
|
+
</div>
|
200
|
+
</div>
|
201
|
+
<a id="gaf80d40f0aea7088ff337606e9c48f7a3" name="gaf80d40f0aea7088ff337606e9c48f7a3"></a>
|
202
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gaf80d40f0aea7088ff337606e9c48f7a3">◆ </a></span>GLFW_VERSION_MINOR</h2>
|
203
|
+
|
204
|
+
<div class="memitem">
|
205
|
+
<div class="memproto">
|
206
|
+
<table class="memname">
|
207
|
+
<tr>
|
208
|
+
<td class="memname">#define GLFW_VERSION_MINOR   4</td>
|
209
|
+
</tr>
|
210
|
+
</table>
|
211
|
+
</div><div class="memdoc">
|
212
|
+
<p>The minor version number of the GLFW header. This is incremented when features are added to the API but it remains backward-compatible. </p>
|
213
|
+
|
214
|
+
</div>
|
215
|
+
</div>
|
216
|
+
<a id="gab72ae2e2035d9ea461abc3495eac0502" name="gab72ae2e2035d9ea461abc3495eac0502"></a>
|
217
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gab72ae2e2035d9ea461abc3495eac0502">◆ </a></span>GLFW_VERSION_REVISION</h2>
|
218
|
+
|
219
|
+
<div class="memitem">
|
220
|
+
<div class="memproto">
|
221
|
+
<table class="memname">
|
222
|
+
<tr>
|
223
|
+
<td class="memname">#define GLFW_VERSION_REVISION   0</td>
|
224
|
+
</tr>
|
225
|
+
</table>
|
226
|
+
</div><div class="memdoc">
|
227
|
+
<p>The revision number of the GLFW header. This is incremented when a bug fix release is made that does not contain any API changes. </p>
|
228
|
+
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
<a id="ga2744fbb29b5631bb28802dbe0cf36eba" name="ga2744fbb29b5631bb28802dbe0cf36eba"></a>
|
232
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga2744fbb29b5631bb28802dbe0cf36eba">◆ </a></span>GLFW_TRUE</h2>
|
233
|
+
|
234
|
+
<div class="memitem">
|
235
|
+
<div class="memproto">
|
236
|
+
<table class="memname">
|
237
|
+
<tr>
|
238
|
+
<td class="memname">#define GLFW_TRUE   1</td>
|
239
|
+
</tr>
|
240
|
+
</table>
|
241
|
+
</div><div class="memdoc">
|
242
|
+
<p>This is only semantic sugar for the number 1. You can instead use <code>1</code> or <code>true</code> or <code>_True</code> or <code>GL_TRUE</code> or <code>VK_TRUE</code> or anything else that is equal to one. </p>
|
243
|
+
|
244
|
+
</div>
|
245
|
+
</div>
|
246
|
+
<a id="gac877fe3b627d21ef3a0a23e0a73ba8c5" name="gac877fe3b627d21ef3a0a23e0a73ba8c5"></a>
|
247
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gac877fe3b627d21ef3a0a23e0a73ba8c5">◆ </a></span>GLFW_FALSE</h2>
|
248
|
+
|
249
|
+
<div class="memitem">
|
250
|
+
<div class="memproto">
|
251
|
+
<table class="memname">
|
252
|
+
<tr>
|
253
|
+
<td class="memname">#define GLFW_FALSE   0</td>
|
254
|
+
</tr>
|
255
|
+
</table>
|
256
|
+
</div><div class="memdoc">
|
257
|
+
<p>This is only semantic sugar for the number 0. You can instead use <code>0</code> or <code>false</code> or <code>_False</code> or <code>GL_FALSE</code> or <code>VK_FALSE</code> or anything else that is equal to zero. </p>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
</div>
|
261
|
+
<a id="gab9c0534709fda03ec8959201da3a9a18" name="gab9c0534709fda03ec8959201da3a9a18"></a>
|
262
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gab9c0534709fda03ec8959201da3a9a18">◆ </a></span>GLFW_JOYSTICK_HAT_BUTTONS</h2>
|
263
|
+
|
264
|
+
<div class="memitem">
|
265
|
+
<div class="memproto">
|
266
|
+
<table class="memname">
|
267
|
+
<tr>
|
268
|
+
<td class="memname">#define GLFW_JOYSTICK_HAT_BUTTONS   0x00050001</td>
|
269
|
+
</tr>
|
270
|
+
</table>
|
271
|
+
</div><div class="memdoc">
|
272
|
+
<p>Joystick hat buttons <a class="el" href="intro_guide.html#GLFW_JOYSTICK_HAT_BUTTONS">init hint</a>. </p>
|
273
|
+
|
274
|
+
</div>
|
275
|
+
</div>
|
276
|
+
<a id="gaec269b24cf549ab46292c0125d8bbdce" name="gaec269b24cf549ab46292c0125d8bbdce"></a>
|
277
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gaec269b24cf549ab46292c0125d8bbdce">◆ </a></span>GLFW_ANGLE_PLATFORM_TYPE</h2>
|
278
|
+
|
279
|
+
<div class="memitem">
|
280
|
+
<div class="memproto">
|
281
|
+
<table class="memname">
|
282
|
+
<tr>
|
283
|
+
<td class="memname">#define GLFW_ANGLE_PLATFORM_TYPE   0x00050002</td>
|
284
|
+
</tr>
|
285
|
+
</table>
|
286
|
+
</div><div class="memdoc">
|
287
|
+
<p>ANGLE rendering backend <a class="el" href="intro_guide.html#GLFW_ANGLE_PLATFORM_TYPE_hint">init hint</a>. </p>
|
288
|
+
|
289
|
+
</div>
|
290
|
+
</div>
|
291
|
+
<a id="ga9d38bf1fdf4f91d6565401734a7cd967" name="ga9d38bf1fdf4f91d6565401734a7cd967"></a>
|
292
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga9d38bf1fdf4f91d6565401734a7cd967">◆ </a></span>GLFW_PLATFORM</h2>
|
293
|
+
|
294
|
+
<div class="memitem">
|
295
|
+
<div class="memproto">
|
296
|
+
<table class="memname">
|
297
|
+
<tr>
|
298
|
+
<td class="memname">#define GLFW_PLATFORM   0x00050003</td>
|
299
|
+
</tr>
|
300
|
+
</table>
|
301
|
+
</div><div class="memdoc">
|
302
|
+
<p>Platform selection <a class="el" href="intro_guide.html#GLFW_PLATFORM">init hint</a>. </p>
|
303
|
+
|
304
|
+
</div>
|
305
|
+
</div>
|
306
|
+
<a id="gab937983147a3158d45f88fad7129d9f2" name="gab937983147a3158d45f88fad7129d9f2"></a>
|
307
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gab937983147a3158d45f88fad7129d9f2">◆ </a></span>GLFW_COCOA_CHDIR_RESOURCES</h2>
|
308
|
+
|
309
|
+
<div class="memitem">
|
310
|
+
<div class="memproto">
|
311
|
+
<table class="memname">
|
312
|
+
<tr>
|
313
|
+
<td class="memname">#define GLFW_COCOA_CHDIR_RESOURCES   0x00051001</td>
|
314
|
+
</tr>
|
315
|
+
</table>
|
316
|
+
</div><div class="memdoc">
|
317
|
+
<p>macOS specific <a class="el" href="intro_guide.html#GLFW_COCOA_CHDIR_RESOURCES_hint">init hint</a>. </p>
|
318
|
+
|
319
|
+
</div>
|
320
|
+
</div>
|
321
|
+
<a id="ga71e0b4ce2f2696a84a9b8c5e12dc70cf" name="ga71e0b4ce2f2696a84a9b8c5e12dc70cf"></a>
|
322
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">◆ </a></span>GLFW_COCOA_MENUBAR</h2>
|
323
|
+
|
324
|
+
<div class="memitem">
|
325
|
+
<div class="memproto">
|
326
|
+
<table class="memname">
|
327
|
+
<tr>
|
328
|
+
<td class="memname">#define GLFW_COCOA_MENUBAR   0x00051002</td>
|
329
|
+
</tr>
|
330
|
+
</table>
|
331
|
+
</div><div class="memdoc">
|
332
|
+
<p>macOS specific <a class="el" href="intro_guide.html#GLFW_COCOA_MENUBAR_hint">init hint</a>. </p>
|
333
|
+
|
334
|
+
</div>
|
335
|
+
</div>
|
336
|
+
<a id="gaa341e303ebeb8e4199b8ab8be84351f6" name="gaa341e303ebeb8e4199b8ab8be84351f6"></a>
|
337
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gaa341e303ebeb8e4199b8ab8be84351f6">◆ </a></span>GLFW_X11_XCB_VULKAN_SURFACE</h2>
|
338
|
+
|
339
|
+
<div class="memitem">
|
340
|
+
<div class="memproto">
|
341
|
+
<table class="memname">
|
342
|
+
<tr>
|
343
|
+
<td class="memname">#define GLFW_X11_XCB_VULKAN_SURFACE   0x00052001</td>
|
344
|
+
</tr>
|
345
|
+
</table>
|
346
|
+
</div><div class="memdoc">
|
347
|
+
<p>X11 specific <a class="el" href="intro_guide.html#GLFW_X11_XCB_VULKAN_SURFACE_hint">init hint</a>. </p>
|
348
|
+
|
349
|
+
</div>
|
350
|
+
</div>
|
351
|
+
<a id="ga2a3f2fd7695902c498b050215b3db452" name="ga2a3f2fd7695902c498b050215b3db452"></a>
|
352
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga2a3f2fd7695902c498b050215b3db452">◆ </a></span>GLFW_WAYLAND_LIBDECOR</h2>
|
353
|
+
|
354
|
+
<div class="memitem">
|
355
|
+
<div class="memproto">
|
356
|
+
<table class="memname">
|
357
|
+
<tr>
|
358
|
+
<td class="memname">#define GLFW_WAYLAND_LIBDECOR   0x00053001</td>
|
359
|
+
</tr>
|
360
|
+
</table>
|
361
|
+
</div><div class="memdoc">
|
362
|
+
<p>Wayland specific <a class="el" href="intro_guide.html#GLFW_WAYLAND_LIBDECOR_hint">init hint</a>. </p>
|
363
|
+
|
364
|
+
</div>
|
365
|
+
</div>
|
366
|
+
<a id="ga18b2d37374d0dea28cd69194fa85b859" name="ga18b2d37374d0dea28cd69194fa85b859"></a>
|
367
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga18b2d37374d0dea28cd69194fa85b859">◆ </a></span>GLFW_ANY_PLATFORM</h2>
|
368
|
+
|
369
|
+
<div class="memitem">
|
370
|
+
<div class="memproto">
|
371
|
+
<table class="memname">
|
372
|
+
<tr>
|
373
|
+
<td class="memname">#define GLFW_ANY_PLATFORM   0x00060000</td>
|
374
|
+
</tr>
|
375
|
+
</table>
|
376
|
+
</div><div class="memdoc">
|
377
|
+
<p>Hint value for <a class="el" href="intro_guide.html#GLFW_PLATFORM">GLFW_PLATFORM</a> that enables automatic platform selection. </p>
|
378
|
+
|
379
|
+
</div>
|
380
|
+
</div>
|
381
|
+
<a id="ga8d3d17df2ab57492cef665da52c603a1" name="ga8d3d17df2ab57492cef665da52c603a1"></a>
|
382
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga8d3d17df2ab57492cef665da52c603a1">◆ </a></span>GLFW_PLATFORM_WIN32</h2>
|
383
|
+
|
384
|
+
<div class="memitem">
|
385
|
+
<div class="memproto">
|
386
|
+
<table class="memname">
|
387
|
+
<tr>
|
388
|
+
<td class="memname">#define GLFW_PLATFORM_WIN32   0x00060001</td>
|
389
|
+
</tr>
|
390
|
+
</table>
|
391
|
+
</div><div class="memdoc">
|
392
|
+
|
393
|
+
</div>
|
394
|
+
</div>
|
395
|
+
<a id="ga83b18714254f75bc2f0cdbafa0f10b6b" name="ga83b18714254f75bc2f0cdbafa0f10b6b"></a>
|
396
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga83b18714254f75bc2f0cdbafa0f10b6b">◆ </a></span>GLFW_PLATFORM_COCOA</h2>
|
397
|
+
|
398
|
+
<div class="memitem">
|
399
|
+
<div class="memproto">
|
400
|
+
<table class="memname">
|
401
|
+
<tr>
|
402
|
+
<td class="memname">#define GLFW_PLATFORM_COCOA   0x00060002</td>
|
403
|
+
</tr>
|
404
|
+
</table>
|
405
|
+
</div><div class="memdoc">
|
406
|
+
|
407
|
+
</div>
|
408
|
+
</div>
|
409
|
+
<a id="gac4b08906a3cbf26c518a4a543eedd740" name="gac4b08906a3cbf26c518a4a543eedd740"></a>
|
410
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gac4b08906a3cbf26c518a4a543eedd740">◆ </a></span>GLFW_PLATFORM_WAYLAND</h2>
|
411
|
+
|
412
|
+
<div class="memitem">
|
413
|
+
<div class="memproto">
|
414
|
+
<table class="memname">
|
415
|
+
<tr>
|
416
|
+
<td class="memname">#define GLFW_PLATFORM_WAYLAND   0x00060003</td>
|
417
|
+
</tr>
|
418
|
+
</table>
|
419
|
+
</div><div class="memdoc">
|
420
|
+
|
421
|
+
</div>
|
422
|
+
</div>
|
423
|
+
<a id="gaf5333f3933e9c248a00cfda6523f386b" name="gaf5333f3933e9c248a00cfda6523f386b"></a>
|
424
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gaf5333f3933e9c248a00cfda6523f386b">◆ </a></span>GLFW_PLATFORM_X11</h2>
|
425
|
+
|
426
|
+
<div class="memitem">
|
427
|
+
<div class="memproto">
|
428
|
+
<table class="memname">
|
429
|
+
<tr>
|
430
|
+
<td class="memname">#define GLFW_PLATFORM_X11   0x00060004</td>
|
431
|
+
</tr>
|
432
|
+
</table>
|
433
|
+
</div><div class="memdoc">
|
434
|
+
|
435
|
+
</div>
|
436
|
+
</div>
|
437
|
+
<a id="gac06fad5a4866ae7a1d7b2675fac72d7f" name="gac06fad5a4866ae7a1d7b2675fac72d7f"></a>
|
438
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gac06fad5a4866ae7a1d7b2675fac72d7f">◆ </a></span>GLFW_PLATFORM_NULL</h2>
|
439
|
+
|
440
|
+
<div class="memitem">
|
441
|
+
<div class="memproto">
|
442
|
+
<table class="memname">
|
443
|
+
<tr>
|
444
|
+
<td class="memname">#define GLFW_PLATFORM_NULL   0x00060005</td>
|
445
|
+
</tr>
|
446
|
+
</table>
|
447
|
+
</div><div class="memdoc">
|
448
|
+
|
449
|
+
</div>
|
450
|
+
</div>
|
451
|
+
<h2 class="groupheader">Typedef Documentation</h2>
|
452
|
+
<a id="ga4306a564e9f60f4de8cc8f31731a3120" name="ga4306a564e9f60f4de8cc8f31731a3120"></a>
|
453
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga4306a564e9f60f4de8cc8f31731a3120">◆ </a></span>GLFWallocatefun</h2>
|
454
|
+
|
455
|
+
<div class="memitem">
|
456
|
+
<div class="memproto">
|
457
|
+
<table class="memname">
|
458
|
+
<tr>
|
459
|
+
<td class="memname">typedef void *(* GLFWallocatefun) (size_t size, void *user)</td>
|
460
|
+
</tr>
|
461
|
+
</table>
|
462
|
+
</div><div class="memdoc">
|
463
|
+
<p>This is the function pointer type for memory allocation callbacks. A memory allocation callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span>* function_name(<span class="keywordtype">size_t</span> size, <span class="keywordtype">void</span>* user)</div>
|
464
|
+
</div><!-- fragment --><p>This function must return either a memory block at least <code>size</code> bytes long, or <code>NULL</code> if allocation failed. Note that not all parts of GLFW handle allocation failures gracefully yet.</p>
|
465
|
+
<p>This function must support being called during <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> but before the library is flagged as initialized, as well as during <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> after the library is no longer flagged as initialized.</p>
|
466
|
+
<p>Any memory allocated via this function will be deallocated via the same allocator during library termination or earlier.</p>
|
467
|
+
<p>Any memory allocated via this function must be suitably aligned for any object type. If you are using C99 or earlier, this alignment is platform-dependent but will be the same as what <code>malloc</code> provides. If you are using C11 or later, this is the value of <code>alignof(max_align_t)</code>.</p>
|
468
|
+
<p>The size will always be greater than zero. Allocations of size zero are filtered out before reaching the custom allocator.</p>
|
469
|
+
<p>If this function returns <code>NULL</code>, GLFW will emit <a class="el" href="group__errors.html#ga9023953a2bcb98c2906afd071d21ee7f">GLFW_OUT_OF_MEMORY</a>.</p>
|
470
|
+
<p>This function must not call any GLFW function.</p>
|
471
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
472
|
+
<table class="params">
|
473
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The minimum size, in bytes, of the memory block. </td></tr>
|
474
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">user</td><td>The user-defined pointer from the allocator. </td></tr>
|
475
|
+
</table>
|
476
|
+
</dd>
|
477
|
+
</dl>
|
478
|
+
<dl class="section return"><dt>Returns</dt><dd>The address of the newly allocated memory block, or <code>NULL</code> if an error occurred.</dd></dl>
|
479
|
+
<dl class="section user"><dt>Pointer lifetime</dt><dd>The returned memory block must be valid at least until it is deallocated.</dd></dl>
|
480
|
+
<dl class="section user"><dt>Reentrancy</dt><dd>This function should not call any GLFW function.</dd></dl>
|
481
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must support being called from any thread that calls GLFW functions.</dd></dl>
|
482
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#init_allocator">Custom heap memory allocator</a> </dd>
|
483
|
+
<dd>
|
484
|
+
<a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a></dd></dl>
|
485
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
486
|
+
|
487
|
+
</div>
|
488
|
+
</div>
|
489
|
+
<a id="ga3e88a829615d8efe8bec1746f7309c63" name="ga3e88a829615d8efe8bec1746f7309c63"></a>
|
490
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga3e88a829615d8efe8bec1746f7309c63">◆ </a></span>GLFWreallocatefun</h2>
|
491
|
+
|
492
|
+
<div class="memitem">
|
493
|
+
<div class="memproto">
|
494
|
+
<table class="memname">
|
495
|
+
<tr>
|
496
|
+
<td class="memname">typedef void *(* GLFWreallocatefun) (void *block, size_t size, void *user)</td>
|
497
|
+
</tr>
|
498
|
+
</table>
|
499
|
+
</div><div class="memdoc">
|
500
|
+
<p>This is the function pointer type for memory reallocation callbacks. A memory reallocation callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span>* function_name(<span class="keywordtype">void</span>* block, <span class="keywordtype">size_t</span> size, <span class="keywordtype">void</span>* user)</div>
|
501
|
+
</div><!-- fragment --><p>This function must return a memory block at least <code>size</code> bytes long, or <code>NULL</code> if allocation failed. Note that not all parts of GLFW handle allocation failures gracefully yet.</p>
|
502
|
+
<p>This function must support being called during <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> but before the library is flagged as initialized, as well as during <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> after the library is no longer flagged as initialized.</p>
|
503
|
+
<p>Any memory allocated via this function will be deallocated via the same allocator during library termination or earlier.</p>
|
504
|
+
<p>Any memory allocated via this function must be suitably aligned for any object type. If you are using C99 or earlier, this alignment is platform-dependent but will be the same as what <code>realloc</code> provides. If you are using C11 or later, this is the value of <code>alignof(max_align_t)</code>.</p>
|
505
|
+
<p>The block address will never be <code>NULL</code> and the size will always be greater than zero. Reallocations of a block to size zero are converted into deallocations before reaching the custom allocator. Reallocations of <code>NULL</code> to a non-zero size are converted into regular allocations before reaching the custom allocator.</p>
|
506
|
+
<p>If this function returns <code>NULL</code>, GLFW will emit <a class="el" href="group__errors.html#ga9023953a2bcb98c2906afd071d21ee7f">GLFW_OUT_OF_MEMORY</a>.</p>
|
507
|
+
<p>This function must not call any GLFW function.</p>
|
508
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
509
|
+
<table class="params">
|
510
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">block</td><td>The address of the memory block to reallocate. </td></tr>
|
511
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">size</td><td>The new minimum size, in bytes, of the memory block. </td></tr>
|
512
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">user</td><td>The user-defined pointer from the allocator. </td></tr>
|
513
|
+
</table>
|
514
|
+
</dd>
|
515
|
+
</dl>
|
516
|
+
<dl class="section return"><dt>Returns</dt><dd>The address of the newly allocated or resized memory block, or <code>NULL</code> if an error occurred.</dd></dl>
|
517
|
+
<dl class="section user"><dt>Pointer lifetime</dt><dd>The returned memory block must be valid at least until it is deallocated.</dd></dl>
|
518
|
+
<dl class="section user"><dt>Reentrancy</dt><dd>This function should not call any GLFW function.</dd></dl>
|
519
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must support being called from any thread that calls GLFW functions.</dd></dl>
|
520
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#init_allocator">Custom heap memory allocator</a> </dd>
|
521
|
+
<dd>
|
522
|
+
<a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a></dd></dl>
|
523
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
524
|
+
|
525
|
+
</div>
|
526
|
+
</div>
|
527
|
+
<a id="ga7181615eda94c4b07bd72bdcee39fa28" name="ga7181615eda94c4b07bd72bdcee39fa28"></a>
|
528
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga7181615eda94c4b07bd72bdcee39fa28">◆ </a></span>GLFWdeallocatefun</h2>
|
529
|
+
|
530
|
+
<div class="memitem">
|
531
|
+
<div class="memproto">
|
532
|
+
<table class="memname">
|
533
|
+
<tr>
|
534
|
+
<td class="memname">typedef void(* GLFWdeallocatefun) (void *block, void *user)</td>
|
535
|
+
</tr>
|
536
|
+
</table>
|
537
|
+
</div><div class="memdoc">
|
538
|
+
<p>This is the function pointer type for memory deallocation callbacks. A memory deallocation callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> function_name(<span class="keywordtype">void</span>* block, <span class="keywordtype">void</span>* user)</div>
|
539
|
+
</div><!-- fragment --><p>This function may deallocate the specified memory block. This memory block will have been allocated with the same allocator.</p>
|
540
|
+
<p>This function must support being called during <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> but before the library is flagged as initialized, as well as during <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> after the library is no longer flagged as initialized.</p>
|
541
|
+
<p>The block address will never be <code>NULL</code>. Deallocations of <code>NULL</code> are filtered out before reaching the custom allocator.</p>
|
542
|
+
<p>If this function returns <code>NULL</code>, GLFW will emit <a class="el" href="group__errors.html#ga9023953a2bcb98c2906afd071d21ee7f">GLFW_OUT_OF_MEMORY</a>.</p>
|
543
|
+
<p>This function must not call any GLFW function.</p>
|
544
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
545
|
+
<table class="params">
|
546
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">block</td><td>The address of the memory block to deallocate. </td></tr>
|
547
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">user</td><td>The user-defined pointer from the allocator.</td></tr>
|
548
|
+
</table>
|
549
|
+
</dd>
|
550
|
+
</dl>
|
551
|
+
<dl class="section user"><dt>Pointer lifetime</dt><dd>The specified memory block will not be accessed by GLFW after this function is called.</dd></dl>
|
552
|
+
<dl class="section user"><dt>Reentrancy</dt><dd>This function should not call any GLFW function.</dd></dl>
|
553
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must support being called from any thread that calls GLFW functions.</dd></dl>
|
554
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#init_allocator">Custom heap memory allocator</a> </dd>
|
555
|
+
<dd>
|
556
|
+
<a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a></dd></dl>
|
557
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
558
|
+
|
559
|
+
</div>
|
560
|
+
</div>
|
561
|
+
<a id="ga8184701785c096b3862a75cda1bf44a3" name="ga8184701785c096b3862a75cda1bf44a3"></a>
|
562
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga8184701785c096b3862a75cda1bf44a3">◆ </a></span>GLFWerrorfun</h2>
|
563
|
+
|
564
|
+
<div class="memitem">
|
565
|
+
<div class="memproto">
|
566
|
+
<table class="memname">
|
567
|
+
<tr>
|
568
|
+
<td class="memname">typedef void(* GLFWerrorfun) (int error_code, const char *description)</td>
|
569
|
+
</tr>
|
570
|
+
</table>
|
571
|
+
</div><div class="memdoc">
|
572
|
+
<p>This is the function pointer type for error callbacks. An error callback function has the following signature: </p><div class="fragment"><div class="line"><span class="keywordtype">void</span> callback_name(<span class="keywordtype">int</span> error_code, <span class="keyword">const</span> <span class="keywordtype">char</span>* description)</div>
|
573
|
+
</div><!-- fragment --><dl class="params"><dt>Parameters</dt><dd>
|
574
|
+
<table class="params">
|
575
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">error_code</td><td>An <a class="el" href="group__errors.html">error code</a>. Future releases may add more error codes. </td></tr>
|
576
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">description</td><td>A UTF-8 encoded string describing the error.</td></tr>
|
577
|
+
</table>
|
578
|
+
</dd>
|
579
|
+
</dl>
|
580
|
+
<dl class="section user"><dt>Pointer lifetime</dt><dd>The error description string is valid until the callback function returns.</dd></dl>
|
581
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#error_handling">Error handling</a> </dd>
|
582
|
+
<dd>
|
583
|
+
<a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a></dd></dl>
|
584
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
|
585
|
+
|
586
|
+
</div>
|
587
|
+
</div>
|
588
|
+
<a id="ga145c57d7f2aeda0b704a5a4ba1d6104b" name="ga145c57d7f2aeda0b704a5a4ba1d6104b"></a>
|
589
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga145c57d7f2aeda0b704a5a4ba1d6104b">◆ </a></span>GLFWallocator</h2>
|
590
|
+
|
591
|
+
<div class="memitem">
|
592
|
+
<div class="memproto">
|
593
|
+
<table class="memname">
|
594
|
+
<tr>
|
595
|
+
<td class="memname">typedef struct <a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a> <a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a></td>
|
596
|
+
</tr>
|
597
|
+
</table>
|
598
|
+
</div><div class="memdoc">
|
599
|
+
<p>This describes a custom heap memory allocator for GLFW. To set an allocator, pass it to <a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a> before initializing the library.</p>
|
600
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#init_allocator">Custom heap memory allocator</a> </dd>
|
601
|
+
<dd>
|
602
|
+
<a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a></dd></dl>
|
603
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
604
|
+
|
605
|
+
</div>
|
606
|
+
</div>
|
607
|
+
<h2 class="groupheader">Function Documentation</h2>
|
608
|
+
<a id="ga317aac130a235ab08c6db0834907d85e" name="ga317aac130a235ab08c6db0834907d85e"></a>
|
609
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga317aac130a235ab08c6db0834907d85e">◆ </a></span>glfwInit()</h2>
|
610
|
+
|
611
|
+
<div class="memitem">
|
612
|
+
<div class="memproto">
|
613
|
+
<table class="memname">
|
614
|
+
<tr>
|
615
|
+
<td class="memname">int glfwInit </td>
|
616
|
+
<td>(</td>
|
617
|
+
<td class="paramtype">void </td>
|
618
|
+
<td class="paramname"></td><td>)</td>
|
619
|
+
<td></td>
|
620
|
+
</tr>
|
621
|
+
</table>
|
622
|
+
</div><div class="memdoc">
|
623
|
+
<p>This function initializes the GLFW library. Before most GLFW functions can be used, GLFW must be initialized, and before an application terminates GLFW should be terminated in order to free any resources allocated during or after initialization.</p>
|
624
|
+
<p>If this function fails, it calls <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> before returning. If it succeeds, you should call <a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a> before the application exits.</p>
|
625
|
+
<p>Additional calls to this function after successful initialization but before termination will return <code>GLFW_TRUE</code> immediately.</p>
|
626
|
+
<p>The <a class="el" href="intro_guide.html#GLFW_PLATFORM">GLFW_PLATFORM</a> init hint controls which platforms are considered during initialization. This also depends on which platforms the library was compiled to support.</p>
|
627
|
+
<dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if successful, or <code>GLFW_FALSE</code> if an <a class="el" href="intro_guide.html#error_handling">error</a> occurred.</dd></dl>
|
628
|
+
<dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga3608c6c29ab7a72f3bf019f4c3a2563d">GLFW_PLATFORM_UNAVAILABLE</a> and <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
|
629
|
+
<dl class="section remark"><dt>Remarks</dt><dd><b>macOS:</b> This function will change the current directory of the application to the <code>Contents/Resources</code> subdirectory of the application's bundle, if present. This can be disabled with the <a class="el" href="group__init.html#gab937983147a3158d45f88fad7129d9f2">GLFW_COCOA_CHDIR_RESOURCES</a> init hint.</dd>
|
630
|
+
<dd>
|
631
|
+
<b>macOS:</b> This function will create the main menu and dock icon for the application. If GLFW finds a <code>MainMenu.nib</code> it is loaded and assumed to contain a menu bar. Otherwise a minimal menu bar is created manually with common commands like Hide, Quit and About. The About entry opens a minimal about dialog with information from the application's bundle. The menu bar and dock icon can be disabled entirely with the <a class="el" href="group__init.html#ga71e0b4ce2f2696a84a9b8c5e12dc70cf">GLFW_COCOA_MENUBAR</a> init hint.</dd>
|
632
|
+
<dd>
|
633
|
+
<b>Wayland, X11:</b> If the library was compiled with support for both Wayland and X11, and the <a class="el" href="intro_guide.html#GLFW_PLATFORM">GLFW_PLATFORM</a> init hint is set to <code>GLFW_ANY_PLATFORM</code>, the <code>XDG_SESSION_TYPE</code> environment variable affects which platform is picked. If the environment variable is not set, or is set to something other than <code>wayland</code> or <code>x11</code>, the regular detection mechanism will be used instead.</dd>
|
634
|
+
<dd>
|
635
|
+
<b>X11:</b> This function will set the <code>LC_CTYPE</code> category of the application locale according to the current environment if that category is still "C". This is because the "C" locale breaks Unicode text input.</dd></dl>
|
636
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
|
637
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_init">Initialization and termination</a> </dd>
|
638
|
+
<dd>
|
639
|
+
<a class="el" href="group__init.html#ga110fd1d3f0412822b4f1908c026f724a">glfwInitHint</a> </dd>
|
640
|
+
<dd>
|
641
|
+
<a class="el" href="group__init.html#ga9dde93e9891fa7dd17e4194c9f3ae7c6">glfwInitAllocator</a> </dd>
|
642
|
+
<dd>
|
643
|
+
<a class="el" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a></dd></dl>
|
644
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl>
|
645
|
+
|
646
|
+
</div>
|
647
|
+
</div>
|
648
|
+
<a id="gaaae48c0a18607ea4a4ba951d939f0901" name="gaaae48c0a18607ea4a4ba951d939f0901"></a>
|
649
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gaaae48c0a18607ea4a4ba951d939f0901">◆ </a></span>glfwTerminate()</h2>
|
650
|
+
|
651
|
+
<div class="memitem">
|
652
|
+
<div class="memproto">
|
653
|
+
<table class="memname">
|
654
|
+
<tr>
|
655
|
+
<td class="memname">void glfwTerminate </td>
|
656
|
+
<td>(</td>
|
657
|
+
<td class="paramtype">void </td>
|
658
|
+
<td class="paramname"></td><td>)</td>
|
659
|
+
<td></td>
|
660
|
+
</tr>
|
661
|
+
</table>
|
662
|
+
</div><div class="memdoc">
|
663
|
+
<p>This function destroys all remaining windows and cursors, restores any modified gamma ramps and frees any other allocated resources. Once this function is called, you must again call <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> successfully before you will be able to use most GLFW functions.</p>
|
664
|
+
<p>If GLFW has been successfully initialized, this function should be called before the application exits. If initialization fails, there is no need to call this function, as it is called by <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a> before it returns failure.</p>
|
665
|
+
<p>This function has no effect if GLFW is not initialized.</p>
|
666
|
+
<dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1">GLFW_PLATFORM_ERROR</a>.</dd></dl>
|
667
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
668
|
+
<dl class="section warning"><dt>Warning</dt><dd>The contexts of any remaining windows must not be current on any other thread when this function is called.</dd></dl>
|
669
|
+
<dl class="section user"><dt>Reentrancy</dt><dd>This function must not be called from a callback.</dd></dl>
|
670
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
|
671
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_init">Initialization and termination</a> </dd>
|
672
|
+
<dd>
|
673
|
+
<a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a></dd></dl>
|
674
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl>
|
675
|
+
|
676
|
+
</div>
|
677
|
+
</div>
|
678
|
+
<a id="ga110fd1d3f0412822b4f1908c026f724a" name="ga110fd1d3f0412822b4f1908c026f724a"></a>
|
679
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga110fd1d3f0412822b4f1908c026f724a">◆ </a></span>glfwInitHint()</h2>
|
680
|
+
|
681
|
+
<div class="memitem">
|
682
|
+
<div class="memproto">
|
683
|
+
<table class="memname">
|
684
|
+
<tr>
|
685
|
+
<td class="memname">void glfwInitHint </td>
|
686
|
+
<td>(</td>
|
687
|
+
<td class="paramtype">int </td>
|
688
|
+
<td class="paramname"><em>hint</em>, </td>
|
689
|
+
</tr>
|
690
|
+
<tr>
|
691
|
+
<td class="paramkey"></td>
|
692
|
+
<td></td>
|
693
|
+
<td class="paramtype">int </td>
|
694
|
+
<td class="paramname"><em>value</em> </td>
|
695
|
+
</tr>
|
696
|
+
<tr>
|
697
|
+
<td></td>
|
698
|
+
<td>)</td>
|
699
|
+
<td></td><td></td>
|
700
|
+
</tr>
|
701
|
+
</table>
|
702
|
+
</div><div class="memdoc">
|
703
|
+
<p>This function sets hints for the next initialization of GLFW.</p>
|
704
|
+
<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>
|
705
|
+
<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>
|
706
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
707
|
+
<table class="params">
|
708
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">hint</td><td>The <a class="el" href="intro_guide.html#init_hints">init hint</a> to set. </td></tr>
|
709
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>The new value of the init hint.</td></tr>
|
710
|
+
</table>
|
711
|
+
</dd>
|
712
|
+
</dl>
|
713
|
+
<dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a> and <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a>.</dd></dl>
|
714
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
715
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
|
716
|
+
<dl class="section see"><dt>See also</dt><dd>init_hints </dd>
|
717
|
+
<dd>
|
718
|
+
<a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e" title="Initializes the GLFW library.">glfwInit</a></dd></dl>
|
719
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
|
720
|
+
|
721
|
+
</div>
|
722
|
+
</div>
|
723
|
+
<a id="ga9dde93e9891fa7dd17e4194c9f3ae7c6" name="ga9dde93e9891fa7dd17e4194c9f3ae7c6"></a>
|
724
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga9dde93e9891fa7dd17e4194c9f3ae7c6">◆ </a></span>glfwInitAllocator()</h2>
|
725
|
+
|
726
|
+
<div class="memitem">
|
727
|
+
<div class="memproto">
|
728
|
+
<table class="memname">
|
729
|
+
<tr>
|
730
|
+
<td class="memname">void glfwInitAllocator </td>
|
731
|
+
<td>(</td>
|
732
|
+
<td class="paramtype">const <a class="el" href="struct_g_l_f_wallocator.html">GLFWallocator</a> * </td>
|
733
|
+
<td class="paramname"><em>allocator</em></td><td>)</td>
|
734
|
+
<td></td>
|
735
|
+
</tr>
|
736
|
+
</table>
|
737
|
+
</div><div class="memdoc">
|
738
|
+
<p>To use the default allocator, call this function with a <code>NULL</code> argument.</p>
|
739
|
+
<p>If you specify an allocator struct, every member must be a valid function pointer. If any member is <code>NULL</code>, this function will emit <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a> and the init allocator will be unchanged.</p>
|
740
|
+
<p>The functions in the allocator must fulfil a number of requirements. See the documentation for <a class="el" href="group__init.html#ga4306a564e9f60f4de8cc8f31731a3120">GLFWallocatefun</a>, <a class="el" href="group__init.html#ga3e88a829615d8efe8bec1746f7309c63">GLFWreallocatefun</a> and <a class="el" href="group__init.html#ga7181615eda94c4b07bd72bdcee39fa28">GLFWdeallocatefun</a> for details.</p>
|
741
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
742
|
+
<table class="params">
|
743
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">allocator</td><td>The allocator to use at the next initialization, or <code>NULL</code> to use the default one.</td></tr>
|
744
|
+
</table>
|
745
|
+
</dd>
|
746
|
+
</dl>
|
747
|
+
<dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#gaaf2ef9aa8202c2b82ac2d921e554c687">GLFW_INVALID_VALUE</a>.</dd></dl>
|
748
|
+
<dl class="section user"><dt>Pointer lifetime</dt><dd>The specified allocator is copied before this function returns.</dd></dl>
|
749
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
|
750
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#init_allocator">Custom heap memory allocator</a> </dd>
|
751
|
+
<dd>
|
752
|
+
<a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a></dd></dl>
|
753
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
754
|
+
|
755
|
+
</div>
|
756
|
+
</div>
|
757
|
+
<a id="ga76af552d0307bb5f7791f245417d4752" name="ga76af552d0307bb5f7791f245417d4752"></a>
|
758
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga76af552d0307bb5f7791f245417d4752">◆ </a></span>glfwInitVulkanLoader()</h2>
|
759
|
+
|
760
|
+
<div class="memitem">
|
761
|
+
<div class="memproto">
|
762
|
+
<table class="memname">
|
763
|
+
<tr>
|
764
|
+
<td class="memname">void glfwInitVulkanLoader </td>
|
765
|
+
<td>(</td>
|
766
|
+
<td class="paramtype">PFN_vkGetInstanceProcAddr </td>
|
767
|
+
<td class="paramname"><em>loader</em></td><td>)</td>
|
768
|
+
<td></td>
|
769
|
+
</tr>
|
770
|
+
</table>
|
771
|
+
</div><div class="memdoc">
|
772
|
+
<p>This function sets the <code>vkGetInstanceProcAddr</code> function that GLFW will use for all Vulkan related entry point queries.</p>
|
773
|
+
<p>This feature is mostly useful on macOS, if your copy of the Vulkan loader is in a location where GLFW cannot find it through dynamic loading, or if you are still using the static library version of the loader.</p>
|
774
|
+
<p>If set to <code>NULL</code>, GLFW will try to load the Vulkan loader dynamically by its standard name and get this function from there. This is the default behavior.</p>
|
775
|
+
<p>The standard name of the loader is <code>vulkan-1.dll</code> on Windows, <code>libvulkan.so.1</code> on Linux and other Unix-like systems and <code>libvulkan.1.dylib</code> on macOS. If your code is also loading it via these names then you probably don't need to use this function.</p>
|
776
|
+
<p>The function address you set is never reset by GLFW, but it only takes effect during initialization. Once GLFW has been initialized, any updates will be ignored until the library is terminated and initialized again.</p>
|
777
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
778
|
+
<table class="params">
|
779
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">loader</td><td>The address of the function to use, or <code>NULL</code>.</td></tr>
|
780
|
+
</table>
|
781
|
+
</dd>
|
782
|
+
</dl>
|
783
|
+
<dl class="section user"><dt>Loader function signature</dt><dd><div class="fragment"><div class="line">PFN_vkVoidFunction vkGetInstanceProcAddr(VkInstance instance, <span class="keyword">const</span> <span class="keywordtype">char</span>* name)</div>
|
784
|
+
</div><!-- fragment --> For more information about this function, see the <a href="https://www.khronos.org/registry/vulkan/">Vulkan Registry</a>.</dd></dl>
|
785
|
+
<dl class="section user"><dt>Errors</dt><dd>None.</dd></dl>
|
786
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
787
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
|
788
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="vulkan_guide.html#vulkan_loader">Finding the Vulkan loader</a> </dd>
|
789
|
+
<dd>
|
790
|
+
<a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a></dd></dl>
|
791
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
792
|
+
|
793
|
+
</div>
|
794
|
+
</div>
|
795
|
+
<a id="ga9f8ffaacf3c269cc48eafbf8b9b71197" name="ga9f8ffaacf3c269cc48eafbf8b9b71197"></a>
|
796
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga9f8ffaacf3c269cc48eafbf8b9b71197">◆ </a></span>glfwGetVersion()</h2>
|
797
|
+
|
798
|
+
<div class="memitem">
|
799
|
+
<div class="memproto">
|
800
|
+
<table class="memname">
|
801
|
+
<tr>
|
802
|
+
<td class="memname">void glfwGetVersion </td>
|
803
|
+
<td>(</td>
|
804
|
+
<td class="paramtype">int * </td>
|
805
|
+
<td class="paramname"><em>major</em>, </td>
|
806
|
+
</tr>
|
807
|
+
<tr>
|
808
|
+
<td class="paramkey"></td>
|
809
|
+
<td></td>
|
810
|
+
<td class="paramtype">int * </td>
|
811
|
+
<td class="paramname"><em>minor</em>, </td>
|
812
|
+
</tr>
|
813
|
+
<tr>
|
814
|
+
<td class="paramkey"></td>
|
815
|
+
<td></td>
|
816
|
+
<td class="paramtype">int * </td>
|
817
|
+
<td class="paramname"><em>rev</em> </td>
|
818
|
+
</tr>
|
819
|
+
<tr>
|
820
|
+
<td></td>
|
821
|
+
<td>)</td>
|
822
|
+
<td></td><td></td>
|
823
|
+
</tr>
|
824
|
+
</table>
|
825
|
+
</div><div class="memdoc">
|
826
|
+
<p>This function retrieves the major, minor and revision numbers of the GLFW library. It is intended for when you are using GLFW as a shared library and want to ensure that you are using the minimum required version.</p>
|
827
|
+
<p>Any or all of the version arguments may be <code>NULL</code>.</p>
|
828
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
829
|
+
<table class="params">
|
830
|
+
<tr><td class="paramdir">[out]</td><td class="paramname">major</td><td>Where to store the major version number, or <code>NULL</code>. </td></tr>
|
831
|
+
<tr><td class="paramdir">[out]</td><td class="paramname">minor</td><td>Where to store the minor version number, or <code>NULL</code>. </td></tr>
|
832
|
+
<tr><td class="paramdir">[out]</td><td class="paramname">rev</td><td>Where to store the revision number, or <code>NULL</code>.</td></tr>
|
833
|
+
</table>
|
834
|
+
</dd>
|
835
|
+
</dl>
|
836
|
+
<dl class="section user"><dt>Errors</dt><dd>None.</dd></dl>
|
837
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
838
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
|
839
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_version">Version management</a> </dd>
|
840
|
+
<dd>
|
841
|
+
<a class="el" href="group__init.html#ga026abd003c8e6501981ab1662062f1c0">glfwGetVersionString</a></dd></dl>
|
842
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 1.0. </dd></dl>
|
843
|
+
|
844
|
+
</div>
|
845
|
+
</div>
|
846
|
+
<a id="ga026abd003c8e6501981ab1662062f1c0" name="ga026abd003c8e6501981ab1662062f1c0"></a>
|
847
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga026abd003c8e6501981ab1662062f1c0">◆ </a></span>glfwGetVersionString()</h2>
|
848
|
+
|
849
|
+
<div class="memitem">
|
850
|
+
<div class="memproto">
|
851
|
+
<table class="memname">
|
852
|
+
<tr>
|
853
|
+
<td class="memname">const char * glfwGetVersionString </td>
|
854
|
+
<td>(</td>
|
855
|
+
<td class="paramtype">void </td>
|
856
|
+
<td class="paramname"></td><td>)</td>
|
857
|
+
<td></td>
|
858
|
+
</tr>
|
859
|
+
</table>
|
860
|
+
</div><div class="memdoc">
|
861
|
+
<p>This function returns the compile-time generated <a class="el" href="intro_guide.html#intro_version_string">version string</a> of the GLFW library binary. It describes the version, platforms, compiler and any platform or operating system specific compile-time options. It should not be confused with the OpenGL or OpenGL ES version string, queried with <code>glGetString</code>.</p>
|
862
|
+
<p><b>Do not use the version string</b> to parse the GLFW library version. The <a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a> function provides the version of the running library binary in numerical format.</p>
|
863
|
+
<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>
|
864
|
+
<dl class="section return"><dt>Returns</dt><dd>The ASCII encoded GLFW version string.</dd></dl>
|
865
|
+
<dl class="section user"><dt>Errors</dt><dd>None.</dd></dl>
|
866
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
867
|
+
<dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is static and compile-time generated.</dd></dl>
|
868
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
|
869
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#intro_version">Version management</a> </dd>
|
870
|
+
<dd>
|
871
|
+
<a class="el" href="group__init.html#ga9f8ffaacf3c269cc48eafbf8b9b71197">glfwGetVersion</a></dd></dl>
|
872
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
|
873
|
+
|
874
|
+
</div>
|
875
|
+
</div>
|
876
|
+
<a id="ga944986b4ec0b928d488141f92982aa18" name="ga944986b4ec0b928d488141f92982aa18"></a>
|
877
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga944986b4ec0b928d488141f92982aa18">◆ </a></span>glfwGetError()</h2>
|
878
|
+
|
879
|
+
<div class="memitem">
|
880
|
+
<div class="memproto">
|
881
|
+
<table class="memname">
|
882
|
+
<tr>
|
883
|
+
<td class="memname">int glfwGetError </td>
|
884
|
+
<td>(</td>
|
885
|
+
<td class="paramtype">const char ** </td>
|
886
|
+
<td class="paramname"><em>description</em></td><td>)</td>
|
887
|
+
<td></td>
|
888
|
+
</tr>
|
889
|
+
</table>
|
890
|
+
</div><div class="memdoc">
|
891
|
+
<p>This function returns and clears the <a class="el" href="group__errors.html">error code</a> of the last error that occurred on the calling thread, and optionally a UTF-8 encoded human-readable description of it. If no error has occurred since the last call, it returns <a class="el" href="group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4">GLFW_NO_ERROR</a> (zero) and the description pointer is set to <code>NULL</code>.</p>
|
892
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
893
|
+
<table class="params">
|
894
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">description</td><td>Where to store the error description pointer, or <code>NULL</code>. </td></tr>
|
895
|
+
</table>
|
896
|
+
</dd>
|
897
|
+
</dl>
|
898
|
+
<dl class="section return"><dt>Returns</dt><dd>The last error code for the calling thread, or <a class="el" href="group__errors.html#gafa30deee5db4d69c4c93d116ed87dbf4">GLFW_NO_ERROR</a> (zero).</dd></dl>
|
899
|
+
<dl class="section user"><dt>Errors</dt><dd>None.</dd></dl>
|
900
|
+
<dl class="section user"><dt>Pointer lifetime</dt><dd>The returned string is allocated and freed by GLFW. You should not free it yourself. It is guaranteed to be valid only until the next error occurs or the library is terminated.</dd></dl>
|
901
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
902
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
|
903
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#error_handling">Error handling</a> </dd>
|
904
|
+
<dd>
|
905
|
+
<a class="el" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a></dd></dl>
|
906
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.3. </dd></dl>
|
907
|
+
|
908
|
+
</div>
|
909
|
+
</div>
|
910
|
+
<a id="gaff45816610d53f0b83656092a4034f40" name="gaff45816610d53f0b83656092a4034f40"></a>
|
911
|
+
<h2 class="memtitle"><span class="permalink"><a href="#gaff45816610d53f0b83656092a4034f40">◆ </a></span>glfwSetErrorCallback()</h2>
|
912
|
+
|
913
|
+
<div class="memitem">
|
914
|
+
<div class="memproto">
|
915
|
+
<table class="memname">
|
916
|
+
<tr>
|
917
|
+
<td class="memname"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> glfwSetErrorCallback </td>
|
918
|
+
<td>(</td>
|
919
|
+
<td class="paramtype"><a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">GLFWerrorfun</a> </td>
|
920
|
+
<td class="paramname"><em>callback</em></td><td>)</td>
|
921
|
+
<td></td>
|
922
|
+
</tr>
|
923
|
+
</table>
|
924
|
+
</div><div class="memdoc">
|
925
|
+
<p>This function sets the error callback, which is called with an error code and a human-readable description each time a GLFW error occurs.</p>
|
926
|
+
<p>The error code is set before the callback is called. Calling <a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a> from the error callback will return the same value as the error code argument.</p>
|
927
|
+
<p>The error callback is called on the thread where the error occurred. If you are using GLFW from multiple threads, your error callback needs to be written accordingly.</p>
|
928
|
+
<p>Because the description string may have been generated specifically for that error, it is not guaranteed to be valid after the callback has returned. If you wish to use it after the callback returns, you need to make a copy.</p>
|
929
|
+
<p>Once set, the error callback remains set even after the library has been terminated.</p>
|
930
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
931
|
+
<table class="params">
|
932
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">callback</td><td>The new callback, or <code>NULL</code> to remove the currently set callback. </td></tr>
|
933
|
+
</table>
|
934
|
+
</dd>
|
935
|
+
</dl>
|
936
|
+
<dl class="section return"><dt>Returns</dt><dd>The previously set callback, or <code>NULL</code> if no callback was set.</dd></dl>
|
937
|
+
<dl class="section user"><dt>Callback signature</dt><dd><div class="fragment"><div class="line"><span class="keywordtype">void</span> callback_name(<span class="keywordtype">int</span> error_code, <span class="keyword">const</span> <span class="keywordtype">char</span>* description)</div>
|
938
|
+
</div><!-- fragment --> For more information about the callback parameters, see the <a class="el" href="group__init.html#ga8184701785c096b3862a75cda1bf44a3">callback pointer type</a>.</dd></dl>
|
939
|
+
<dl class="section user"><dt>Errors</dt><dd>None.</dd></dl>
|
940
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
941
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function must only be called from the main thread.</dd></dl>
|
942
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#error_handling">Error handling</a> </dd>
|
943
|
+
<dd>
|
944
|
+
<a class="el" href="group__init.html#ga944986b4ec0b928d488141f92982aa18">glfwGetError</a></dd></dl>
|
945
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.0. </dd></dl>
|
946
|
+
|
947
|
+
</div>
|
948
|
+
</div>
|
949
|
+
<a id="ga6d6a983d38bd4e8fd786d7a9061d399e" name="ga6d6a983d38bd4e8fd786d7a9061d399e"></a>
|
950
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga6d6a983d38bd4e8fd786d7a9061d399e">◆ </a></span>glfwGetPlatform()</h2>
|
951
|
+
|
952
|
+
<div class="memitem">
|
953
|
+
<div class="memproto">
|
954
|
+
<table class="memname">
|
955
|
+
<tr>
|
956
|
+
<td class="memname">int glfwGetPlatform </td>
|
957
|
+
<td>(</td>
|
958
|
+
<td class="paramtype">void </td>
|
959
|
+
<td class="paramname"></td><td>)</td>
|
960
|
+
<td></td>
|
961
|
+
</tr>
|
962
|
+
</table>
|
963
|
+
</div><div class="memdoc">
|
964
|
+
<p>This function returns the platform that was selected during initialization. The returned value will be one of <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>.</p>
|
965
|
+
<dl class="section return"><dt>Returns</dt><dd>The currently selected platform, or zero if an error occurred.</dd></dl>
|
966
|
+
<dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga2374ee02c177f12e1fa76ff3ed15e14a">GLFW_NOT_INITIALIZED</a>.</dd></dl>
|
967
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
|
968
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#platform">Runtime platform selection</a> </dd>
|
969
|
+
<dd>
|
970
|
+
<a class="el" href="group__init.html#ga8785d2b6b36632368d803e78079d38ed">glfwPlatformSupported</a></dd></dl>
|
971
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
972
|
+
|
973
|
+
</div>
|
974
|
+
</div>
|
975
|
+
<a id="ga8785d2b6b36632368d803e78079d38ed" name="ga8785d2b6b36632368d803e78079d38ed"></a>
|
976
|
+
<h2 class="memtitle"><span class="permalink"><a href="#ga8785d2b6b36632368d803e78079d38ed">◆ </a></span>glfwPlatformSupported()</h2>
|
977
|
+
|
978
|
+
<div class="memitem">
|
979
|
+
<div class="memproto">
|
980
|
+
<table class="memname">
|
981
|
+
<tr>
|
982
|
+
<td class="memname">int glfwPlatformSupported </td>
|
983
|
+
<td>(</td>
|
984
|
+
<td class="paramtype">int </td>
|
985
|
+
<td class="paramname"><em>platform</em></td><td>)</td>
|
986
|
+
<td></td>
|
987
|
+
</tr>
|
988
|
+
</table>
|
989
|
+
</div><div class="memdoc">
|
990
|
+
<p>This function returns whether the library was compiled with support for the specified platform. The platform must be one of <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>.</p>
|
991
|
+
<dl class="params"><dt>Parameters</dt><dd>
|
992
|
+
<table class="params">
|
993
|
+
<tr><td class="paramdir">[in]</td><td class="paramname">platform</td><td>The platform to query. </td></tr>
|
994
|
+
</table>
|
995
|
+
</dd>
|
996
|
+
</dl>
|
997
|
+
<dl class="section return"><dt>Returns</dt><dd><code>GLFW_TRUE</code> if the platform is supported, or <code>GLFW_FALSE</code> otherwise.</dd></dl>
|
998
|
+
<dl class="section user"><dt>Errors</dt><dd>Possible errors include <a class="el" href="group__errors.html#ga76f6bb9c4eea73db675f096b404593ce">GLFW_INVALID_ENUM</a>.</dd></dl>
|
999
|
+
<dl class="section remark"><dt>Remarks</dt><dd>This function may be called before <a class="el" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>.</dd></dl>
|
1000
|
+
<dl class="section user"><dt>Thread safety</dt><dd>This function may be called from any thread.</dd></dl>
|
1001
|
+
<dl class="section see"><dt>See also</dt><dd><a class="el" href="intro_guide.html#platform">Runtime platform selection</a> </dd>
|
1002
|
+
<dd>
|
1003
|
+
<a class="el" href="group__init.html#ga6d6a983d38bd4e8fd786d7a9061d399e">glfwGetPlatform</a></dd></dl>
|
1004
|
+
<dl class="section since"><dt>Since</dt><dd>Added in version 3.4. </dd></dl>
|
1005
|
+
|
1006
|
+
</div>
|
1007
|
+
</div>
|
1008
|
+
</div><!-- contents -->
|
1009
|
+
<address class="footer">
|
1010
|
+
<p>
|
1011
|
+
Last update on Fri Feb 23 2024 for GLFW 3.4.0
|
1012
|
+
</p>
|
1013
|
+
</address>
|
1014
|
+
</body>
|
1015
|
+
</html>
|