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,397 @@
|
|
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: Getting started</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
|
+
<!-- window showing the filter options -->
|
49
|
+
<div id="MSearchSelectWindow"
|
50
|
+
onmouseover="return searchBox.OnSearchSelectShow()"
|
51
|
+
onmouseout="return searchBox.OnSearchSelectHide()"
|
52
|
+
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<!-- iframe showing the search results (closed by default) -->
|
56
|
+
<div id="MSearchResultsWindow">
|
57
|
+
<div id="MSearchResults">
|
58
|
+
<div class="SRPage">
|
59
|
+
<div id="SRIndex">
|
60
|
+
<div id="SRResults"></div>
|
61
|
+
<div class="SRStatus" id="Loading">Loading...</div>
|
62
|
+
<div class="SRStatus" id="Searching">Searching...</div>
|
63
|
+
<div class="SRStatus" id="NoMatches">No Matches</div>
|
64
|
+
</div>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
</div><!-- top -->
|
70
|
+
<div><div class="header">
|
71
|
+
<div class="headertitle"><div class="title">Getting started</div></div>
|
72
|
+
</div><!--header-->
|
73
|
+
<div class="contents">
|
74
|
+
<div class="toc"><h3>Table of Contents</h3>
|
75
|
+
<ul><li class="level1"><a href="#quick_steps">Step by step</a><ul><li class="level2"><a href="#quick_include">Including the GLFW header</a></li>
|
76
|
+
<li class="level2"><a href="#quick_init_term">Initializing and terminating GLFW</a></li>
|
77
|
+
<li class="level2"><a href="#quick_capture_error">Setting an error callback</a></li>
|
78
|
+
<li class="level2"><a href="#quick_create_window">Creating a window and context</a></li>
|
79
|
+
<li class="level2"><a href="#quick_context_current">Making the OpenGL context current</a></li>
|
80
|
+
<li class="level2"><a href="#quick_window_close">Checking the window close flag</a></li>
|
81
|
+
<li class="level2"><a href="#quick_key_input">Receiving input events</a></li>
|
82
|
+
<li class="level2"><a href="#quick_render">Rendering with OpenGL</a></li>
|
83
|
+
<li class="level2"><a href="#quick_timer">Reading the timer</a></li>
|
84
|
+
<li class="level2"><a href="#quick_swap_buffers">Swapping buffers</a></li>
|
85
|
+
<li class="level2"><a href="#quick_process_events">Processing events</a></li>
|
86
|
+
</ul>
|
87
|
+
</li>
|
88
|
+
<li class="level1"><a href="#quick_example">Putting it together</a></li>
|
89
|
+
</ul>
|
90
|
+
</div>
|
91
|
+
<div class="textblock"><p>This guide takes you through writing a simple application using GLFW 3. The application will create a window and OpenGL context, render a rotating triangle and exit when the user closes the window or presses <em>Escape</em>. This guide will introduce a few of the most commonly used functions, but there are many more.</p>
|
92
|
+
<p>This guide assumes no experience with earlier versions of GLFW. If you have used GLFW 2 in the past, read <a class="el" href="moving_guide.html">Moving from GLFW 2 to 3</a>, as some functions behave differently in GLFW 3.</p>
|
93
|
+
<h1><a class="anchor" id="quick_steps"></a>
|
94
|
+
Step by step</h1>
|
95
|
+
<h2><a class="anchor" id="quick_include"></a>
|
96
|
+
Including the GLFW header</h2>
|
97
|
+
<p>In the source files of your application where you use GLFW, you need to include its header file.</p>
|
98
|
+
<div class="fragment"><div class="line"><span class="preprocessor">#include <<a class="code" href="glfw3_8h.html">GLFW/glfw3.h</a>></span></div>
|
99
|
+
<div class="ttc" id="aglfw3_8h_html"><div class="ttname"><a href="glfw3_8h.html">glfw3.h</a></div><div class="ttdoc">The header of the GLFW 3 API.</div></div>
|
100
|
+
</div><!-- fragment --><p>This header provides all the constants, types and function prototypes of the GLFW API.</p>
|
101
|
+
<p>By default it also includes the OpenGL header from your development environment. On some platforms this header only supports older versions of OpenGL. The most extreme case is Windows, where it typically only supports OpenGL 1.2.</p>
|
102
|
+
<p>Most programs will instead use an <a class="el" href="context_guide.html#context_glext_auto">extension loader library</a> and include its header. This example uses files generated by <a href="https://gen.glad.sh/">glad</a>. The GLFW header can detect most such headers if they are included first and will then not include the one from your development environment.</p>
|
103
|
+
<div class="fragment"><div class="line"><span class="preprocessor">#include <glad/gl.h></span></div>
|
104
|
+
<div class="line"><span class="preprocessor">#include <<a class="code" href="glfw3_8h.html">GLFW/glfw3.h</a>></span></div>
|
105
|
+
</div><!-- fragment --><p>To make sure there will be no header conflicts, you can define <a class="el" href="build_guide.html#GLFW_INCLUDE_NONE">GLFW_INCLUDE_NONE</a> before the GLFW header to explicitly disable inclusion of the development environment header. This also allows the two headers to be included in any order.</p>
|
106
|
+
<div class="fragment"><div class="line"><span class="preprocessor">#define GLFW_INCLUDE_NONE</span></div>
|
107
|
+
<div class="line"><span class="preprocessor">#include <<a class="code" href="glfw3_8h.html">GLFW/glfw3.h</a>></span></div>
|
108
|
+
<div class="line"><span class="preprocessor">#include <glad/gl.h></span></div>
|
109
|
+
</div><!-- fragment --><h2><a class="anchor" id="quick_init_term"></a>
|
110
|
+
Initializing and terminating GLFW</h2>
|
111
|
+
<p>Before you can use most GLFW functions, the library must be initialized. On successful initialization, <code>GLFW_TRUE</code> is returned. If an error occurred, <code>GLFW_FALSE</code> is returned.</p>
|
112
|
+
<div class="fragment"><div class="line"><span class="keywordflow">if</span> (!<a class="code hl_function" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>())</div>
|
113
|
+
<div class="line">{</div>
|
114
|
+
<div class="line"> <span class="comment">// Initialization failed</span></div>
|
115
|
+
<div class="line">}</div>
|
116
|
+
<div class="ttc" id="agroup__init_html_ga317aac130a235ab08c6db0834907d85e"><div class="ttname"><a href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a></div><div class="ttdeci">int glfwInit(void)</div><div class="ttdoc">Initializes the GLFW library.</div></div>
|
117
|
+
</div><!-- fragment --><p>Note that <code>GLFW_TRUE</code> and <code>GLFW_FALSE</code> are and will always be one and zero.</p>
|
118
|
+
<p>When you are done using GLFW, typically just before the application exits, you need to terminate GLFW.</p>
|
119
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>();</div>
|
120
|
+
<div class="ttc" id="agroup__init_html_gaaae48c0a18607ea4a4ba951d939f0901"><div class="ttname"><a href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a></div><div class="ttdeci">void glfwTerminate(void)</div><div class="ttdoc">Terminates the GLFW library.</div></div>
|
121
|
+
</div><!-- fragment --><p>This destroys any remaining windows and releases any other resources allocated by GLFW. After this call, you must initialize GLFW again before using any GLFW functions that require it.</p>
|
122
|
+
<h2><a class="anchor" id="quick_capture_error"></a>
|
123
|
+
Setting an error callback</h2>
|
124
|
+
<p>Most events are reported through callbacks, whether it's a key being pressed, a GLFW window being moved, or an error occurring. Callbacks are C functions (or C++ static methods) that are called by GLFW with arguments describing the event.</p>
|
125
|
+
<p>In case a GLFW function fails, an error is reported to the GLFW error callback. You can receive these reports with an error callback. This function must have the signature below but may do anything permitted in other callbacks.</p>
|
126
|
+
<div class="fragment"><div class="line"><span class="keywordtype">void</span> error_callback(<span class="keywordtype">int</span> error, <span class="keyword">const</span> <span class="keywordtype">char</span>* description)</div>
|
127
|
+
<div class="line">{</div>
|
128
|
+
<div class="line"> fprintf(stderr, <span class="stringliteral">"Error: %s\n"</span>, description);</div>
|
129
|
+
<div class="line">}</div>
|
130
|
+
</div><!-- fragment --><p>Callback functions must be set, so GLFW knows to call them. The function to set the error callback is one of the few GLFW functions that may be called before initialization, which lets you be notified of errors both during and after initialization.</p>
|
131
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a>(error_callback);</div>
|
132
|
+
<div class="ttc" id="agroup__init_html_gaff45816610d53f0b83656092a4034f40"><div class="ttname"><a href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a></div><div class="ttdeci">GLFWerrorfun glfwSetErrorCallback(GLFWerrorfun callback)</div><div class="ttdoc">Sets the error callback.</div></div>
|
133
|
+
</div><!-- fragment --><h2><a class="anchor" id="quick_create_window"></a>
|
134
|
+
Creating a window and context</h2>
|
135
|
+
<p>The window and its OpenGL context are created with a single call to <a class="el" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>, which returns a handle to the created combined window and context object</p>
|
136
|
+
<div class="fragment"><div class="line"><a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window = <a class="code hl_function" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>(640, 480, <span class="stringliteral">"My Title"</span>, NULL, NULL);</div>
|
137
|
+
<div class="line"><span class="keywordflow">if</span> (!window)</div>
|
138
|
+
<div class="line">{</div>
|
139
|
+
<div class="line"> <span class="comment">// Window or OpenGL context creation failed</span></div>
|
140
|
+
<div class="line">}</div>
|
141
|
+
<div class="ttc" id="agroup__window_html_ga3555a418df92ad53f917597fe2f64aeb"><div class="ttname"><a href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a></div><div class="ttdeci">GLFWwindow * glfwCreateWindow(int width, int height, const char *title, GLFWmonitor *monitor, GLFWwindow *share)</div><div class="ttdoc">Creates a window and its associated context.</div></div>
|
142
|
+
<div class="ttc" id="agroup__window_html_ga3c96d80d363e67d13a41b5d1821f3242"><div class="ttname"><a href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a></div><div class="ttdeci">struct GLFWwindow GLFWwindow</div><div class="ttdoc">Opaque window object.</div><div class="ttdef"><b>Definition</b> glfw3.h:1195</div></div>
|
143
|
+
</div><!-- fragment --><p>This creates a 640 by 480 windowed mode window with an OpenGL context. If window or OpenGL context creation fails, <code>NULL</code> will be returned. You should always check the return value. While window creation rarely fails, context creation depends on properly installed drivers and may fail even on machines with the necessary hardware.</p>
|
144
|
+
<p>By default, the OpenGL context GLFW creates may have any version. You can require a minimum OpenGL version by setting the <code>GLFW_CONTEXT_VERSION_MAJOR</code> and <code>GLFW_CONTEXT_VERSION_MINOR</code> hints <em>before</em> creation. If the required minimum version is not supported on the machine, context (and window) creation fails.</p>
|
145
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a>(<a class="code hl_define" href="group__window.html#gafe5e4922de1f9932d7e9849bb053b0c0">GLFW_CONTEXT_VERSION_MAJOR</a>, 2);</div>
|
146
|
+
<div class="line"><a class="code hl_function" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a>(<a class="code hl_define" href="group__window.html#ga31aca791e4b538c4e4a771eb95cc2d07">GLFW_CONTEXT_VERSION_MINOR</a>, 0);</div>
|
147
|
+
<div class="line"><a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window = <a class="code hl_function" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>(640, 480, <span class="stringliteral">"My Title"</span>, NULL, NULL);</div>
|
148
|
+
<div class="line"><span class="keywordflow">if</span> (!window)</div>
|
149
|
+
<div class="line">{</div>
|
150
|
+
<div class="line"> <span class="comment">// Window or context creation failed</span></div>
|
151
|
+
<div class="line">}</div>
|
152
|
+
<div class="ttc" id="agroup__window_html_ga31aca791e4b538c4e4a771eb95cc2d07"><div class="ttname"><a href="group__window.html#ga31aca791e4b538c4e4a771eb95cc2d07">GLFW_CONTEXT_VERSION_MINOR</a></div><div class="ttdeci">#define GLFW_CONTEXT_VERSION_MINOR</div><div class="ttdoc">Context client API minor version hint and attribute.</div><div class="ttdef"><b>Definition</b> glfw3.h:963</div></div>
|
153
|
+
<div class="ttc" id="agroup__window_html_ga7d9c8c62384b1e2821c4dc48952d2033"><div class="ttname"><a href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a></div><div class="ttdeci">void glfwWindowHint(int hint, int value)</div><div class="ttdoc">Sets the specified window hint to the desired value.</div></div>
|
154
|
+
<div class="ttc" id="agroup__window_html_gafe5e4922de1f9932d7e9849bb053b0c0"><div class="ttname"><a href="group__window.html#gafe5e4922de1f9932d7e9849bb053b0c0">GLFW_CONTEXT_VERSION_MAJOR</a></div><div class="ttdeci">#define GLFW_CONTEXT_VERSION_MAJOR</div><div class="ttdoc">Context client API major version hint and attribute.</div><div class="ttdef"><b>Definition</b> glfw3.h:957</div></div>
|
155
|
+
</div><!-- fragment --><p>When a window and context is no longer needed, destroy it.</p>
|
156
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a>(window);</div>
|
157
|
+
<div class="ttc" id="agroup__window_html_gacdf43e51376051d2c091662e9fe3d7b2"><div class="ttname"><a href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a></div><div class="ttdeci">void glfwDestroyWindow(GLFWwindow *window)</div><div class="ttdoc">Destroys the specified window and its context.</div></div>
|
158
|
+
</div><!-- fragment --><p>Once this function is called, no more events will be delivered for that window and its handle becomes invalid.</p>
|
159
|
+
<h2><a class="anchor" id="quick_context_current"></a>
|
160
|
+
Making the OpenGL context current</h2>
|
161
|
+
<p>Before you can use the OpenGL API, you must have a current OpenGL context.</p>
|
162
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a>(window);</div>
|
163
|
+
<div class="ttc" id="agroup__context_html_ga1c04dc242268f827290fe40aa1c91157"><div class="ttname"><a href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a></div><div class="ttdeci">void glfwMakeContextCurrent(GLFWwindow *window)</div><div class="ttdoc">Makes the context of the specified window current for the calling thread.</div></div>
|
164
|
+
</div><!-- fragment --><p>The context will remain current until you make another context current or until the window owning the current context is destroyed.</p>
|
165
|
+
<p>If you are using an <a class="el" href="context_guide.html#context_glext_auto">extension loader library</a> to access modern OpenGL then this is when to initialize it, as the loader needs a current context to load from. This example uses <a href="https://github.com/Dav1dde/glad">glad</a>, but the same rule applies to all such libraries.</p>
|
166
|
+
<div class="fragment"><div class="line">gladLoadGL(<a class="code hl_function" href="group__context.html#ga35f1837e6f666781842483937612f163">glfwGetProcAddress</a>);</div>
|
167
|
+
<div class="ttc" id="agroup__context_html_ga35f1837e6f666781842483937612f163"><div class="ttname"><a href="group__context.html#ga35f1837e6f666781842483937612f163">glfwGetProcAddress</a></div><div class="ttdeci">GLFWglproc glfwGetProcAddress(const char *procname)</div><div class="ttdoc">Returns the address of the specified function for the current context.</div></div>
|
168
|
+
</div><!-- fragment --><h2><a class="anchor" id="quick_window_close"></a>
|
169
|
+
Checking the window close flag</h2>
|
170
|
+
<p>Each window has a flag indicating whether the window should be closed.</p>
|
171
|
+
<p>When the user attempts to close the window, either by pressing the close widget in the title bar or using a key combination like Alt+F4, this flag is set to 1. Note that <b>the window isn't actually closed</b>, so you are expected to monitor this flag and either destroy the window or give some kind of feedback to the user.</p>
|
172
|
+
<div class="fragment"><div class="line"><span class="keywordflow">while</span> (!<a class="code hl_function" href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a>(window))</div>
|
173
|
+
<div class="line">{</div>
|
174
|
+
<div class="line"> <span class="comment">// Keep running</span></div>
|
175
|
+
<div class="line">}</div>
|
176
|
+
<div class="ttc" id="agroup__window_html_ga24e02fbfefbb81fc45320989f8140ab5"><div class="ttname"><a href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a></div><div class="ttdeci">int glfwWindowShouldClose(GLFWwindow *window)</div><div class="ttdoc">Checks the close flag of the specified window.</div></div>
|
177
|
+
</div><!-- fragment --><p>You can be notified when the user is attempting to close the window by setting a close callback with <a class="el" href="group__window.html#gada646d775a7776a95ac000cfc1885331">glfwSetWindowCloseCallback</a>. The callback will be called immediately after the close flag has been set.</p>
|
178
|
+
<p>You can also set it yourself with <a class="el" href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a>. This can be useful if you want to interpret other kinds of input as closing the window, like for example pressing the <em>Escape</em> key.</p>
|
179
|
+
<h2><a class="anchor" id="quick_key_input"></a>
|
180
|
+
Receiving input events</h2>
|
181
|
+
<p>Each window has a large number of callbacks that can be set to receive all the various kinds of events. To receive key press and release events, create a key callback function.</p>
|
182
|
+
<div class="fragment"><div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> key_callback(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> key, <span class="keywordtype">int</span> scancode, <span class="keywordtype">int</span> action, <span class="keywordtype">int</span> mods)</div>
|
183
|
+
<div class="line">{</div>
|
184
|
+
<div class="line"> <span class="keywordflow">if</span> (key == <a class="code hl_define" href="group__keys.html#gaac6596c350b635c245113b81c2123b93">GLFW_KEY_ESCAPE</a> && action == <a class="code hl_define" href="group__input.html#ga2485743d0b59df3791c45951c4195265">GLFW_PRESS</a>)</div>
|
185
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a>(window, <a class="code hl_define" href="group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba">GLFW_TRUE</a>);</div>
|
186
|
+
<div class="line">}</div>
|
187
|
+
<div class="ttc" id="agroup__init_html_ga2744fbb29b5631bb28802dbe0cf36eba"><div class="ttname"><a href="group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba">GLFW_TRUE</a></div><div class="ttdeci">#define GLFW_TRUE</div><div class="ttdoc">One.</div><div class="ttdef"><b>Definition</b> glfw3.h:312</div></div>
|
188
|
+
<div class="ttc" id="agroup__input_html_ga2485743d0b59df3791c45951c4195265"><div class="ttname"><a href="group__input.html#ga2485743d0b59df3791c45951c4195265">GLFW_PRESS</a></div><div class="ttdeci">#define GLFW_PRESS</div><div class="ttdoc">The key or mouse button was pressed.</div><div class="ttdef"><b>Definition</b> glfw3.h:338</div></div>
|
189
|
+
<div class="ttc" id="agroup__keys_html_gaac6596c350b635c245113b81c2123b93"><div class="ttname"><a href="group__keys.html#gaac6596c350b635c245113b81c2123b93">GLFW_KEY_ESCAPE</a></div><div class="ttdeci">#define GLFW_KEY_ESCAPE</div><div class="ttdef"><b>Definition</b> glfw3.h:448</div></div>
|
190
|
+
<div class="ttc" id="agroup__window_html_ga49c449dde2a6f87d996f4daaa09d6708"><div class="ttname"><a href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a></div><div class="ttdeci">void glfwSetWindowShouldClose(GLFWwindow *window, int value)</div><div class="ttdoc">Sets the close flag of the specified window.</div></div>
|
191
|
+
</div><!-- fragment --><p>The key callback, like other window related callbacks, are set per-window.</p>
|
192
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__input.html#ga1caf18159767e761185e49a3be019f8d">glfwSetKeyCallback</a>(window, key_callback);</div>
|
193
|
+
<div class="ttc" id="agroup__input_html_ga1caf18159767e761185e49a3be019f8d"><div class="ttname"><a href="group__input.html#ga1caf18159767e761185e49a3be019f8d">glfwSetKeyCallback</a></div><div class="ttdeci">GLFWkeyfun glfwSetKeyCallback(GLFWwindow *window, GLFWkeyfun callback)</div><div class="ttdoc">Sets the key callback.</div></div>
|
194
|
+
</div><!-- fragment --><p>In order for event callbacks to be called when events occur, you need to process events as described below.</p>
|
195
|
+
<h2><a class="anchor" id="quick_render"></a>
|
196
|
+
Rendering with OpenGL</h2>
|
197
|
+
<p>Once you have a current OpenGL context, you can use OpenGL normally. In this tutorial, a multicolored rotating triangle will be rendered. The framebuffer size needs to be retrieved for <code>glViewport</code>.</p>
|
198
|
+
<div class="fragment"><div class="line"><span class="keywordtype">int</span> width, height;</div>
|
199
|
+
<div class="line"><a class="code hl_function" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a>(window, &width, &height);</div>
|
200
|
+
<div class="line">glViewport(0, 0, width, height);</div>
|
201
|
+
<div class="ttc" id="agroup__window_html_ga0e2637a4161afb283f5300c7f94785c9"><div class="ttname"><a href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a></div><div class="ttdeci">void glfwGetFramebufferSize(GLFWwindow *window, int *width, int *height)</div><div class="ttdoc">Retrieves the size of the framebuffer of the specified window.</div></div>
|
202
|
+
</div><!-- fragment --><p>You can also set a framebuffer size callback using <a class="el" href="group__window.html#gab3fb7c3366577daef18c0023e2a8591f">glfwSetFramebufferSizeCallback</a> and be notified when the size changes.</p>
|
203
|
+
<p>The details of how to render with OpenGL is outside the scope of this tutorial, but there are many excellent resources for learning modern OpenGL. Here are a few of them:</p>
|
204
|
+
<ul>
|
205
|
+
<li><a href="https://antongerdelan.net/opengl/">Anton's OpenGL 4 Tutorials</a></li>
|
206
|
+
<li><a href="https://learnopengl.com/">Learn OpenGL</a></li>
|
207
|
+
<li><a href="https://open.gl/">Open.GL</a></li>
|
208
|
+
</ul>
|
209
|
+
<p>These all happen to use GLFW, but OpenGL itself works the same whatever API you use to create the window and context.</p>
|
210
|
+
<h2><a class="anchor" id="quick_timer"></a>
|
211
|
+
Reading the timer</h2>
|
212
|
+
<p>To create smooth animation, a time source is needed. GLFW provides a timer that returns the number of seconds since initialization. The time source used is the most accurate on each platform and generally has micro- or nanosecond resolution.</p>
|
213
|
+
<div class="fragment"><div class="line"><span class="keywordtype">double</span> time = <a class="code hl_function" href="group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a">glfwGetTime</a>();</div>
|
214
|
+
<div class="ttc" id="agroup__input_html_gaa6cf4e7a77158a3b8fd00328b1720a4a"><div class="ttname"><a href="group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a">glfwGetTime</a></div><div class="ttdeci">double glfwGetTime(void)</div><div class="ttdoc">Returns the GLFW time.</div></div>
|
215
|
+
</div><!-- fragment --><h2><a class="anchor" id="quick_swap_buffers"></a>
|
216
|
+
Swapping buffers</h2>
|
217
|
+
<p>GLFW windows by default use double buffering. That means that each window has two rendering buffers; a front buffer and a back buffer. The front buffer is the one being displayed and the back buffer the one you render to.</p>
|
218
|
+
<p>When the entire frame has been rendered, the buffers need to be swapped with one another, so the back buffer becomes the front buffer and vice versa.</p>
|
219
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a>(window);</div>
|
220
|
+
<div class="ttc" id="agroup__window_html_ga15a5a1ee5b3c2ca6b15ca209a12efd14"><div class="ttname"><a href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a></div><div class="ttdeci">void glfwSwapBuffers(GLFWwindow *window)</div><div class="ttdoc">Swaps the front and back buffers of the specified window.</div></div>
|
221
|
+
</div><!-- fragment --><p>The swap interval indicates how many frames to wait until swapping the buffers, commonly known as <em>vsync</em>. By default, the swap interval is zero, meaning buffer swapping will occur immediately. On fast machines, many of those frames will never be seen, as the screen is still only updated typically 60-75 times per second, so this wastes a lot of CPU and GPU cycles.</p>
|
222
|
+
<p>Also, because the buffers will be swapped in the middle the screen update, leading to <a href="https://en.wikipedia.org/wiki/Screen_tearing">screen tearing</a>.</p>
|
223
|
+
<p>For these reasons, applications will typically want to set the swap interval to one. It can be set to higher values, but this is usually not recommended, because of the input latency it leads to.</p>
|
224
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed">glfwSwapInterval</a>(1);</div>
|
225
|
+
<div class="ttc" id="agroup__context_html_ga6d4e0cdf151b5e579bd67f13202994ed"><div class="ttname"><a href="group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed">glfwSwapInterval</a></div><div class="ttdeci">void glfwSwapInterval(int interval)</div><div class="ttdoc">Sets the swap interval for the current context.</div></div>
|
226
|
+
</div><!-- fragment --><p>This function acts on the current context and will fail unless a context is current.</p>
|
227
|
+
<h2><a class="anchor" id="quick_process_events"></a>
|
228
|
+
Processing events</h2>
|
229
|
+
<p>GLFW needs to communicate regularly with the window system both in order to receive events and to show that the application hasn't locked up. Event processing must be done regularly while you have visible windows and is normally done each frame after buffer swapping.</p>
|
230
|
+
<p>There are two methods for processing pending events; polling and waiting. This example will use event polling, which processes only those events that have already been received and then returns immediately.</p>
|
231
|
+
<div class="fragment"><div class="line"><a class="code hl_function" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a>();</div>
|
232
|
+
<div class="ttc" id="agroup__window_html_ga37bd57223967b4211d60ca1a0bf3c832"><div class="ttname"><a href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a></div><div class="ttdeci">void glfwPollEvents(void)</div><div class="ttdoc">Processes all pending events.</div></div>
|
233
|
+
</div><!-- fragment --><p>This is the best choice when rendering continually, like most games do. If instead you only need to update your rendering once you have received new input, <a class="el" href="group__window.html#ga554e37d781f0a997656c26b2c56c835e">glfwWaitEvents</a> is a better choice. It waits until at least one event has been received, putting the thread to sleep in the meantime, and then processes all received events. This saves a great deal of CPU cycles and is useful for, for example, many kinds of editing tools.</p>
|
234
|
+
<h1><a class="anchor" id="quick_example"></a>
|
235
|
+
Putting it together</h1>
|
236
|
+
<p>Now that you know how to initialize GLFW, create a window and poll for keyboard input, it's possible to create a simple program.</p>
|
237
|
+
<p>This program creates a 640 by 480 windowed mode window and starts a loop that clears the screen, renders a triangle and processes events until the user either presses <em>Escape</em> or closes the window.</p>
|
238
|
+
<div class="fragment"><div class="line"> </div>
|
239
|
+
<div class="line"><span class="preprocessor">#include <glad/gl.h></span></div>
|
240
|
+
<div class="line"><span class="preprocessor">#define GLFW_INCLUDE_NONE</span></div>
|
241
|
+
<div class="line"><span class="preprocessor">#include <<a class="code" href="glfw3_8h.html">GLFW/glfw3.h</a>></span></div>
|
242
|
+
<div class="line"> </div>
|
243
|
+
<div class="line"><span class="preprocessor">#include "linmath.h"</span></div>
|
244
|
+
<div class="line"> </div>
|
245
|
+
<div class="line"><span class="preprocessor">#include <stdlib.h></span></div>
|
246
|
+
<div class="line"><span class="preprocessor">#include <stdio.h></span></div>
|
247
|
+
<div class="line"> </div>
|
248
|
+
<div class="line"><span class="keyword">static</span> <span class="keyword">const</span> <span class="keyword">struct</span></div>
|
249
|
+
<div class="line">{</div>
|
250
|
+
<div class="line"> <span class="keywordtype">float</span> x, y;</div>
|
251
|
+
<div class="line"> <span class="keywordtype">float</span> r, g, b;</div>
|
252
|
+
<div class="line">} vertices[3] =</div>
|
253
|
+
<div class="line">{</div>
|
254
|
+
<div class="line"> { -0.6f, -0.4f, 1.f, 0.f, 0.f },</div>
|
255
|
+
<div class="line"> { 0.6f, -0.4f, 0.f, 1.f, 0.f },</div>
|
256
|
+
<div class="line"> { 0.f, 0.6f, 0.f, 0.f, 1.f }</div>
|
257
|
+
<div class="line">};</div>
|
258
|
+
<div class="line"> </div>
|
259
|
+
<div class="line"><span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* vertex_shader_text =</div>
|
260
|
+
<div class="line"><span class="stringliteral">"#version 110\n"</span></div>
|
261
|
+
<div class="line"><span class="stringliteral">"uniform mat4 MVP;\n"</span></div>
|
262
|
+
<div class="line"><span class="stringliteral">"attribute vec3 vCol;\n"</span></div>
|
263
|
+
<div class="line"><span class="stringliteral">"attribute vec2 vPos;\n"</span></div>
|
264
|
+
<div class="line"><span class="stringliteral">"varying vec3 color;\n"</span></div>
|
265
|
+
<div class="line"><span class="stringliteral">"void main()\n"</span></div>
|
266
|
+
<div class="line"><span class="stringliteral">"{\n"</span></div>
|
267
|
+
<div class="line"><span class="stringliteral">" gl_Position = MVP * vec4(vPos, 0.0, 1.0);\n"</span></div>
|
268
|
+
<div class="line"><span class="stringliteral">" color = vCol;\n"</span></div>
|
269
|
+
<div class="line"><span class="stringliteral">"}\n"</span>;</div>
|
270
|
+
<div class="line"> </div>
|
271
|
+
<div class="line"><span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* fragment_shader_text =</div>
|
272
|
+
<div class="line"><span class="stringliteral">"#version 110\n"</span></div>
|
273
|
+
<div class="line"><span class="stringliteral">"varying vec3 color;\n"</span></div>
|
274
|
+
<div class="line"><span class="stringliteral">"void main()\n"</span></div>
|
275
|
+
<div class="line"><span class="stringliteral">"{\n"</span></div>
|
276
|
+
<div class="line"><span class="stringliteral">" gl_FragColor = vec4(color, 1.0);\n"</span></div>
|
277
|
+
<div class="line"><span class="stringliteral">"}\n"</span>;</div>
|
278
|
+
<div class="line"> </div>
|
279
|
+
<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> error_callback(<span class="keywordtype">int</span> error, <span class="keyword">const</span> <span class="keywordtype">char</span>* description)</div>
|
280
|
+
<div class="line">{</div>
|
281
|
+
<div class="line"> fprintf(stderr, <span class="stringliteral">"Error: %s\n"</span>, description);</div>
|
282
|
+
<div class="line">}</div>
|
283
|
+
<div class="line"> </div>
|
284
|
+
<div class="line"><span class="keyword">static</span> <span class="keywordtype">void</span> key_callback(<a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window, <span class="keywordtype">int</span> key, <span class="keywordtype">int</span> scancode, <span class="keywordtype">int</span> action, <span class="keywordtype">int</span> mods)</div>
|
285
|
+
<div class="line">{</div>
|
286
|
+
<div class="line"> <span class="keywordflow">if</span> (key == <a class="code hl_define" href="group__keys.html#gaac6596c350b635c245113b81c2123b93">GLFW_KEY_ESCAPE</a> && action == <a class="code hl_define" href="group__input.html#ga2485743d0b59df3791c45951c4195265">GLFW_PRESS</a>)</div>
|
287
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#ga49c449dde2a6f87d996f4daaa09d6708">glfwSetWindowShouldClose</a>(window, <a class="code hl_define" href="group__init.html#ga2744fbb29b5631bb28802dbe0cf36eba">GLFW_TRUE</a>);</div>
|
288
|
+
<div class="line">}</div>
|
289
|
+
<div class="line"> </div>
|
290
|
+
<div class="line"><span class="keywordtype">int</span> main(<span class="keywordtype">void</span>)</div>
|
291
|
+
<div class="line">{</div>
|
292
|
+
<div class="line"> <a class="code hl_typedef" href="group__window.html#ga3c96d80d363e67d13a41b5d1821f3242">GLFWwindow</a>* window;</div>
|
293
|
+
<div class="line"> GLuint vertex_buffer, vertex_shader, fragment_shader, program;</div>
|
294
|
+
<div class="line"> GLint mvp_location, vpos_location, vcol_location;</div>
|
295
|
+
<div class="line"> </div>
|
296
|
+
<div class="line"> <a class="code hl_function" href="group__init.html#gaff45816610d53f0b83656092a4034f40">glfwSetErrorCallback</a>(error_callback);</div>
|
297
|
+
<div class="line"> </div>
|
298
|
+
<div class="line"> <span class="keywordflow">if</span> (!<a class="code hl_function" href="group__init.html#ga317aac130a235ab08c6db0834907d85e">glfwInit</a>())</div>
|
299
|
+
<div class="line"> exit(EXIT_FAILURE);</div>
|
300
|
+
<div class="line"> </div>
|
301
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a>(<a class="code hl_define" href="group__window.html#gafe5e4922de1f9932d7e9849bb053b0c0">GLFW_CONTEXT_VERSION_MAJOR</a>, 2);</div>
|
302
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#ga7d9c8c62384b1e2821c4dc48952d2033">glfwWindowHint</a>(<a class="code hl_define" href="group__window.html#ga31aca791e4b538c4e4a771eb95cc2d07">GLFW_CONTEXT_VERSION_MINOR</a>, 0);</div>
|
303
|
+
<div class="line"> </div>
|
304
|
+
<div class="line"> window = <a class="code hl_function" href="group__window.html#ga3555a418df92ad53f917597fe2f64aeb">glfwCreateWindow</a>(640, 480, <span class="stringliteral">"Simple example"</span>, NULL, NULL);</div>
|
305
|
+
<div class="line"> <span class="keywordflow">if</span> (!window)</div>
|
306
|
+
<div class="line"> {</div>
|
307
|
+
<div class="line"> <a class="code hl_function" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>();</div>
|
308
|
+
<div class="line"> exit(EXIT_FAILURE);</div>
|
309
|
+
<div class="line"> }</div>
|
310
|
+
<div class="line"> </div>
|
311
|
+
<div class="line"> <a class="code hl_function" href="group__input.html#ga1caf18159767e761185e49a3be019f8d">glfwSetKeyCallback</a>(window, key_callback);</div>
|
312
|
+
<div class="line"> </div>
|
313
|
+
<div class="line"> <a class="code hl_function" href="group__context.html#ga1c04dc242268f827290fe40aa1c91157">glfwMakeContextCurrent</a>(window);</div>
|
314
|
+
<div class="line"> gladLoadGL(<a class="code hl_function" href="group__context.html#ga35f1837e6f666781842483937612f163">glfwGetProcAddress</a>);</div>
|
315
|
+
<div class="line"> <a class="code hl_function" href="group__context.html#ga6d4e0cdf151b5e579bd67f13202994ed">glfwSwapInterval</a>(1);</div>
|
316
|
+
<div class="line"> </div>
|
317
|
+
<div class="line"> <span class="comment">// NOTE: OpenGL error checks have been omitted for brevity</span></div>
|
318
|
+
<div class="line"> </div>
|
319
|
+
<div class="line"> glGenBuffers(1, &vertex_buffer);</div>
|
320
|
+
<div class="line"> glBindBuffer(GL_ARRAY_BUFFER, vertex_buffer);</div>
|
321
|
+
<div class="line"> glBufferData(GL_ARRAY_BUFFER, <span class="keyword">sizeof</span>(vertices), vertices, GL_STATIC_DRAW);</div>
|
322
|
+
<div class="line"> </div>
|
323
|
+
<div class="line"> vertex_shader = glCreateShader(GL_VERTEX_SHADER);</div>
|
324
|
+
<div class="line"> glShaderSource(vertex_shader, 1, &vertex_shader_text, NULL);</div>
|
325
|
+
<div class="line"> glCompileShader(vertex_shader);</div>
|
326
|
+
<div class="line"> </div>
|
327
|
+
<div class="line"> fragment_shader = glCreateShader(GL_FRAGMENT_SHADER);</div>
|
328
|
+
<div class="line"> glShaderSource(fragment_shader, 1, &fragment_shader_text, NULL);</div>
|
329
|
+
<div class="line"> glCompileShader(fragment_shader);</div>
|
330
|
+
<div class="line"> </div>
|
331
|
+
<div class="line"> program = glCreateProgram();</div>
|
332
|
+
<div class="line"> glAttachShader(program, vertex_shader);</div>
|
333
|
+
<div class="line"> glAttachShader(program, fragment_shader);</div>
|
334
|
+
<div class="line"> glLinkProgram(program);</div>
|
335
|
+
<div class="line"> </div>
|
336
|
+
<div class="line"> mvp_location = glGetUniformLocation(program, <span class="stringliteral">"MVP"</span>);</div>
|
337
|
+
<div class="line"> vpos_location = glGetAttribLocation(program, <span class="stringliteral">"vPos"</span>);</div>
|
338
|
+
<div class="line"> vcol_location = glGetAttribLocation(program, <span class="stringliteral">"vCol"</span>);</div>
|
339
|
+
<div class="line"> </div>
|
340
|
+
<div class="line"> glEnableVertexAttribArray(vpos_location);</div>
|
341
|
+
<div class="line"> glVertexAttribPointer(vpos_location, 2, GL_FLOAT, GL_FALSE,</div>
|
342
|
+
<div class="line"> <span class="keyword">sizeof</span>(vertices[0]), (<span class="keywordtype">void</span>*) 0);</div>
|
343
|
+
<div class="line"> glEnableVertexAttribArray(vcol_location);</div>
|
344
|
+
<div class="line"> glVertexAttribPointer(vcol_location, 3, GL_FLOAT, GL_FALSE,</div>
|
345
|
+
<div class="line"> <span class="keyword">sizeof</span>(vertices[0]), (<span class="keywordtype">void</span>*) (<span class="keyword">sizeof</span>(<span class="keywordtype">float</span>) * 2));</div>
|
346
|
+
<div class="line"> </div>
|
347
|
+
<div class="line"> <span class="keywordflow">while</span> (!<a class="code hl_function" href="group__window.html#ga24e02fbfefbb81fc45320989f8140ab5">glfwWindowShouldClose</a>(window))</div>
|
348
|
+
<div class="line"> {</div>
|
349
|
+
<div class="line"> <span class="keywordtype">float</span> ratio;</div>
|
350
|
+
<div class="line"> <span class="keywordtype">int</span> width, height;</div>
|
351
|
+
<div class="line"> mat4x4 m, p, mvp;</div>
|
352
|
+
<div class="line"> </div>
|
353
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#ga0e2637a4161afb283f5300c7f94785c9">glfwGetFramebufferSize</a>(window, &width, &height);</div>
|
354
|
+
<div class="line"> ratio = width / (float) height;</div>
|
355
|
+
<div class="line"> </div>
|
356
|
+
<div class="line"> glViewport(0, 0, width, height);</div>
|
357
|
+
<div class="line"> glClear(GL_COLOR_BUFFER_BIT);</div>
|
358
|
+
<div class="line"> </div>
|
359
|
+
<div class="line"> mat4x4_identity(m);</div>
|
360
|
+
<div class="line"> mat4x4_rotate_Z(m, m, (<span class="keywordtype">float</span>) <a class="code hl_function" href="group__input.html#gaa6cf4e7a77158a3b8fd00328b1720a4a">glfwGetTime</a>());</div>
|
361
|
+
<div class="line"> mat4x4_ortho(p, -ratio, ratio, -1.f, 1.f, 1.f, -1.f);</div>
|
362
|
+
<div class="line"> mat4x4_mul(mvp, p, m);</div>
|
363
|
+
<div class="line"> </div>
|
364
|
+
<div class="line"> glUseProgram(program);</div>
|
365
|
+
<div class="line"> glUniformMatrix4fv(mvp_location, 1, GL_FALSE, (<span class="keyword">const</span> GLfloat*) mvp);</div>
|
366
|
+
<div class="line"> glDrawArrays(GL_TRIANGLES, 0, 3);</div>
|
367
|
+
<div class="line"> </div>
|
368
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14">glfwSwapBuffers</a>(window);</div>
|
369
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#ga37bd57223967b4211d60ca1a0bf3c832">glfwPollEvents</a>();</div>
|
370
|
+
<div class="line"> }</div>
|
371
|
+
<div class="line"> </div>
|
372
|
+
<div class="line"> <a class="code hl_function" href="group__window.html#gacdf43e51376051d2c091662e9fe3d7b2">glfwDestroyWindow</a>(window);</div>
|
373
|
+
<div class="line"> </div>
|
374
|
+
<div class="line"> <a class="code hl_function" href="group__init.html#gaaae48c0a18607ea4a4ba951d939f0901">glfwTerminate</a>();</div>
|
375
|
+
<div class="line"> exit(EXIT_SUCCESS);</div>
|
376
|
+
<div class="line">}</div>
|
377
|
+
<div class="line"> </div>
|
378
|
+
</div><!-- fragment --><p>The program above can be found in the <a href="https://www.glfw.org/download.html">source package</a> as <code>examples/simple.c</code> and is compiled along with all other examples when you build GLFW. If you built GLFW from the source package then you already have this as <code>simple.exe</code> on Windows, <code>simple</code> on Linux or <code>simple.app</code> on macOS.</p>
|
379
|
+
<p>This tutorial used only a few of the many functions GLFW provides. There are guides for each of the areas covered by GLFW. Each guide will introduce all the functions for that category.</p>
|
380
|
+
<ul>
|
381
|
+
<li><a class="el" href="intro_guide.html">Introduction to the API</a></li>
|
382
|
+
<li><a class="el" href="window_guide.html">Window guide</a></li>
|
383
|
+
<li><a class="el" href="context_guide.html">Context guide</a></li>
|
384
|
+
<li><a class="el" href="monitor_guide.html">Monitor guide</a></li>
|
385
|
+
<li><a class="el" href="input_guide.html">Input guide</a></li>
|
386
|
+
</ul>
|
387
|
+
<p>You can access reference documentation for any GLFW function by clicking it and the reference for each function links to related functions and guide sections.</p>
|
388
|
+
<p>The tutorial ends here. Once you have written a program that uses GLFW, you will need to compile and link it. How to do that depends on the development environment you are using and is best explained by the documentation for that environment. To learn about the details that are specific to GLFW, see <a class="el" href="build_guide.html">Building applications</a>. </p>
|
389
|
+
</div></div><!-- contents -->
|
390
|
+
</div><!-- PageDoc -->
|
391
|
+
<address class="footer">
|
392
|
+
<p>
|
393
|
+
Last update on Thu Dec 14 2023 for GLFW 3.3.9
|
394
|
+
</p>
|
395
|
+
</address>
|
396
|
+
</body>
|
397
|
+
</html>
|
@@ -0,0 +1,65 @@
|
|
1
|
+
var searchData=
|
2
|
+
[
|
3
|
+
['macos_0',['macos',['../compat_guide.html#compat_osx',1,'OpenGL on macOS'],['../build_guide.html#build_link_osx',1,'With command-line on macOS'],['../build_guide.html#build_link_xcode',1,'With Xcode on macOS']]],
|
4
|
+
['macos_20menu_20bar_20from_20nib_20file_1',['macOS menu bar from nib file',['../news.html#macos_nib_33',1,'']]],
|
5
|
+
['macos_20specific_20cmake_20options_20and_20macros_2',['macOS specific CMake options and macros',['../news.html#macos_options_33',1,'']]],
|
6
|
+
['macos_20specific_20init_20hints_3',['macOS specific init hints',['../intro_guide.html#init_hints_osx',1,'']]],
|
7
|
+
['macos_20specific_20window_20hints_4',['macOS specific window hints',['../window_guide.html#window_hints_osx',1,'']]],
|
8
|
+
['macos_20via_20moltenvk_5',['Support for Vulkan on macOS via MoltenVK',['../news.html#moltenvk_33',1,'']]],
|
9
|
+
['macro_6',['Removal of GLFWCALL macro',['../moving_guide.html#moving_stdcall',1,'']]],
|
10
|
+
['macro_20for_20including_20extension_20header_7',['Macro for including extension header',['../news.html#news_31_glext',1,'']]],
|
11
|
+
['macros_8',['macros',['../internals_guide.html#internals_config',1,'Configuration macros'],['../build_guide.html#build_macros',1,'GLFW header option macros'],['../news.html#macos_options_33',1,'macOS specific CMake options and macros']]],
|
12
|
+
['main_20thread_20wake_20up_9',['Main thread wake-up',['../news.html#news_31_emptyevent',1,'']]],
|
13
|
+
['main_2edox_10',['main.dox',['../main_8dox.html',1,'']]],
|
14
|
+
['makefiles_20and_20pkg_20config_20on_20unix_11',['With makefiles and pkg-config on Unix',['../build_guide.html#build_link_pkgconfig',1,'']]],
|
15
|
+
['making_20the_20opengl_20context_20current_12',['Making the OpenGL context current',['../quick_guide.html#quick_context_current',1,'']]],
|
16
|
+
['management_13',['management',['../moving_guide.html#moving_context',1,'Explicit context management'],['../intro_guide.html#intro_version',1,'Version management']]],
|
17
|
+
['manually_14',['manually',['../compile_guide.html#compile_manual',1,'Compiling GLFW manually'],['../context_guide.html#context_glext_manual',1,'Loading extensions manually']]],
|
18
|
+
['mappings_15',['Gamepad mappings',['../input_guide.html#gamepad_mapping',1,'']]],
|
19
|
+
['masks_16',['Modifier key bit masks',['../news.html#news_30_keymods',1,'']]],
|
20
|
+
['maximization_17',['Window maximization',['../window_guide.html#window_maximize',1,'']]],
|
21
|
+
['maximization_20callback_18',['Window maximization callback',['../news.html#maximize_33',1,'']]],
|
22
|
+
['maxmimization_20support_19',['Window maxmimization support',['../news.html#news_32_maximize',1,'']]],
|
23
|
+
['may_20be_20rejected_20',['Gamma ramp size of 256 may be rejected',['../news.html#gamma_ramp_size_33',1,'']]],
|
24
|
+
['may_20lack_20alpha_20channel_20on_20older_20wayland_20systems_21',['Frambuffer may lack alpha channel on older Wayland systems',['../news.html#wayland_alpha_34',1,'']]],
|
25
|
+
['mbcs_20support_22',['Win32 MBCS support',['../moving_guide.html#moving_mbcs',1,'']]],
|
26
|
+
['menu_20bar_20from_20nib_20file_23',['macOS menu bar from nib file',['../news.html#macos_nib_33',1,'']]],
|
27
|
+
['mingw_24',['Cross-compilation with CMake and MinGW',['../compile_guide.html#compile_mingw_cross',1,'']]],
|
28
|
+
['mingw_20or_20visual_20c_20on_20windows_25',['With MinGW or Visual C++ on Windows',['../build_guide.html#build_link_win32',1,'']]],
|
29
|
+
['mir_20support_26',['mir support',['../news.html#news_31_mir',1,'(Experimental) Mir support'],['../news.html#mir_removed_33',1,'Mir support']]],
|
30
|
+
['mode_27',['Cursor mode',['../input_guide.html#cursor_mode',1,'']]],
|
31
|
+
['mode_20enumeration_28',['Video mode enumeration',['../moving_guide.html#moving_video_modes',1,'']]],
|
32
|
+
['mode_20switching_29',['Window mode switching',['../news.html#news_32_setwindowmonitor',1,'']]],
|
33
|
+
['modes_30',['Video modes',['../monitor_guide.html#monitor_modes',1,'']]],
|
34
|
+
['modifier_20key_20bit_20masks_31',['Modifier key bit masks',['../news.html#news_30_keymods',1,'']]],
|
35
|
+
['modifier_20key_20flags_32',['Modifier key flags',['../group__mods.html',1,'']]],
|
36
|
+
['modifiers_20callback_33',['modifiers callback',['../news.html#charmods_callback_33',1,'Character with modifiers callback'],['../news.html#news_31_charmods',1,'Character with modifiers callback']]],
|
37
|
+
['moltenvk_34',['Support for Vulkan on macOS via MoltenVK',['../news.html#moltenvk_33',1,'']]],
|
38
|
+
['monitor_35',['Window monitor',['../window_guide.html#window_monitor',1,'']]],
|
39
|
+
['monitor_20and_20joystick_20user_20pointers_36',['Monitor and joystick user pointers',['../news.html#device_userptr_33',1,'']]],
|
40
|
+
['monitor_20configuration_20changes_37',['Monitor configuration changes',['../monitor_guide.html#monitor_event',1,'']]],
|
41
|
+
['monitor_20guide_38',['Monitor guide',['../monitor_guide.html',1,'']]],
|
42
|
+
['monitor_20objects_39',['Monitor objects',['../monitor_guide.html#monitor_object',1,'']]],
|
43
|
+
['monitor_20properties_40',['Monitor properties',['../monitor_guide.html#monitor_properties',1,'']]],
|
44
|
+
['monitor_20reference_41',['Monitor reference',['../group__monitor.html',1,'']]],
|
45
|
+
['monitor_20related_20hints_42',['Monitor related hints',['../window_guide.html#window_hints_mtr',1,'']]],
|
46
|
+
['monitor_20rendering_43',['Simultaneous multi-monitor rendering',['../news.html#news_31_autoiconify',1,'']]],
|
47
|
+
['monitor_20selection_44',['Explicit monitor selection',['../moving_guide.html#moving_monitor',1,'']]],
|
48
|
+
['monitor_20support_45',['Multi-monitor support',['../news.html#news_30_multimon',1,'']]],
|
49
|
+
['monitor_20work_20area_46',['Query for the monitor work area',['../news.html#workarea_33',1,'']]],
|
50
|
+
['monitor_2edox_47',['monitor.dox',['../monitor_8dox.html',1,'']]],
|
51
|
+
['monitors_48',['Retrieving monitors',['../monitor_guide.html#monitor_monitors',1,'']]],
|
52
|
+
['more_20context_20creation_20extensions_49',['Support for more context creation extensions',['../news.html#glext_33',1,'']]],
|
53
|
+
['motion_50',['motion',['../input_guide.html#raw_mouse_motion',1,'Raw mouse motion'],['../news.html#raw_motion_33',1,'Support for raw mouse motion']]],
|
54
|
+
['mouse_20button_20input_51',['Mouse button input',['../input_guide.html#input_mouse_button',1,'']]],
|
55
|
+
['mouse_20buttons_52',['Mouse buttons',['../group__buttons.html',1,'']]],
|
56
|
+
['mouse_20cursor_20hover_20window_20attribute_53',['Mouse cursor hover window attribute',['../news.html#cursor_hover_33',1,'']]],
|
57
|
+
['mouse_20cursor_20images_54',['Custom mouse cursor images',['../news.html#news_31_cursor',1,'']]],
|
58
|
+
['mouse_20input_55',['Mouse input',['../input_guide.html#input_mouse',1,'']]],
|
59
|
+
['mouse_20motion_56',['mouse motion',['../input_guide.html#raw_mouse_motion',1,'Raw mouse motion'],['../news.html#raw_motion_33',1,'Support for raw mouse motion']]],
|
60
|
+
['moving_20from_20glfw_202_20to_203_57',['Moving from GLFW 2 to 3',['../moving_guide.html',1,'']]],
|
61
|
+
['moving_2edox_58',['moving.dox',['../moving_8dox.html',1,'']]],
|
62
|
+
['multi_20monitor_20rendering_59',['Simultaneous multi-monitor rendering',['../news.html#news_31_autoiconify',1,'']]],
|
63
|
+
['multi_20monitor_20support_60',['Multi-monitor support',['../news.html#news_30_multimon',1,'']]],
|
64
|
+
['multi_20window_20support_61',['Multi-window support',['../news.html#news_30_multiwnd',1,'']]]
|
65
|
+
];
|
@@ -0,0 +1,26 @@
|
|
1
|
+
var searchData=
|
2
|
+
[
|
3
|
+
['name_0',['name',['../monitor_guide.html#monitor_name',1,'Human-readable name'],['../input_guide.html#joystick_name',1,'Joystick name']]],
|
4
|
+
['name_20change_20tables_1',['Name change tables',['../moving_guide.html#moving_tables',1,'']]],
|
5
|
+
['names_2',['names',['../news.html#news_30_jsname',1,'Joystick names'],['../input_guide.html#input_key_name',1,'Key names'],['../news.html#news_32_keyname',1,'Localized key names']]],
|
6
|
+
['native_20access_3',['Native access',['../group__native.html',1,'']]],
|
7
|
+
['native_20interface_4',['Native interface',['../internals_guide.html#internals_native',1,'']]],
|
8
|
+
['new_20constants_20in_20version_203_203_5',['New constants in version 3.3',['../news.html#constants_33',1,'']]],
|
9
|
+
['new_20features_20in_20version_203_200_6',['New features in version 3.0',['../news.html#features_30',1,'']]],
|
10
|
+
['new_20features_20in_20version_203_201_7',['New features in version 3.1',['../news.html#features_31',1,'']]],
|
11
|
+
['new_20features_20in_20version_203_202_8',['New features in version 3.2',['../news.html#features_32',1,'']]],
|
12
|
+
['new_20features_20in_20version_203_203_9',['New features in version 3.3',['../news.html#features_33',1,'']]],
|
13
|
+
['new_20functions_20in_20version_203_203_10',['New functions in version 3.3',['../news.html#functions_33',1,'']]],
|
14
|
+
['new_20symbols_20in_20version_203_203_11',['New symbols in version 3.3',['../news.html#symbols_33',1,'']]],
|
15
|
+
['new_20types_20in_20version_203_203_12',['New types in version 3.3',['../news.html#types_33',1,'']]],
|
16
|
+
['news_2edox_13',['news.dox',['../news_8dox.html',1,'']]],
|
17
|
+
['nib_20file_14',['macOS menu bar from nib file',['../news.html#macos_nib_33',1,'']]],
|
18
|
+
['no_20longer_20roundtrip_20to_20server_15',['Empty events on X11 no longer roundtrip to server',['../news.html#emptyevents_33',1,'']]],
|
19
|
+
['no_20window_20required_20to_20wait_20for_20events_16',['No window required to wait for events',['../news.html#wait_events_33',1,'']]],
|
20
|
+
['notes_17',['Release notes',['../news.html',1,'']]],
|
21
|
+
['notes_20for_203_200_18',['Release notes for 3.0',['../news.html#news_30',1,'']]],
|
22
|
+
['notes_20for_203_201_19',['Release notes for 3.1',['../news.html#news_31',1,'']]],
|
23
|
+
['notes_20for_203_202_20',['Release notes for 3.2',['../news.html#news_32',1,'']]],
|
24
|
+
['notes_20for_20version_203_203_21',['Release notes for version 3.3',['../news.html#news_33',1,'']]],
|
25
|
+
['notitle_22',['notitle',['../index.html',1,'']]]
|
26
|
+
];
|